All Frameworks  Object Hierarchy  This Framework  Previous  Next  Indexes  

SchSession (Object)

IUnknown
  |
  +---IDispatch
    |
    +---CATBaseUnknown
      |
      +---CATBaseDispatch
        |
        +---AnyObject
          |
          +---SchSession
 


Represents a schematic session.

Method Index

CreateDocument
Create a document with Schematic context.
GetCurrentApplicationID
Get the current application ID.
GetCurrentDocument
Get the current document.
GetSchExtContainer
Get the schematic container (e.
SetCurrentApplicationID
Set the current application ID.
SetCurrentDocument
Set the current document.

Methods


o Sub CreateDocument(CATBSTR iDocType,
boolean iBInteractive,
CATIADocument oNewDoc)
Create a document with Schematic context.
Parameters:
iDocType
Document type, if NULL "Product" is assumed. These are the types shown in the File+New list
iBInteractive
If TRUE, document is created in interactive session with editor
oNewDoc
Document created.
Example:
 Dim objThisIntf As SchSession
 Dim strVar1 As String
 Dim bVar2 As boolean
 Dim objArg3 As Document
  ...
 objThisIntf.CreateDocumentstrVar1,bVar2,objArg3
 
o Sub GetCurrentApplicationID(CATBSTR oApplicationID)
Get the current application ID.
Parameters:
oApplicationID
Application ID
Example:
 Dim objThisIntf As SchSession
 Dim strVar1 As String
  ...
 objThisIntf.GetCurrentApplicationIDstrVar1
 
o Func GetCurrentDocument() As CATIADocument
Get the current document.
Parameters:
oCurDoc
Pointer to current document. DO NOT NEED TO RELEASE OUTPUT POINTER.
Example:
 Dim objThisIntf As SchSession
 Dim objArg1 As Document
  ...
 Set objArg1 = objThisIntf.GetCurrentDocument
 
o Func GetSchExtContainer(CATIADocument iDoc) As CATIABase
Get the schematic container (e.g. for CATISchBaseFactory implementation).
Parameters:
iDoc
Document in the session to retreive the container from
oContainer
Schematic container shown in the File+New list
Example:
 Dim objThisIntf As SchSession
 Dim objArg1 As Document
 Dim objArg2 As AnyObject
  ...
 Set objArg2 = objThisIntf.GetSchExtContainer(objArg1)
 
o Sub SetCurrentApplicationID(CATBSTR iApplicationID)
Set the current application ID.
Parameters:
iApplicationID
Application ID
Example:
 Dim objThisIntf As SchSession
 Dim strVar1 As String
  ...
 objThisIntf.SetCurrentApplicationIDstrVar1
 
o Sub SetCurrentDocument(CATIADocument iCurDoc)
Set the current document.
Parameters:
iCurDoc
Pointer to current document.
Example:
 Dim objThisIntf As SchSession
 Dim objArg1 As Document
  ...
 objThisIntf.SetCurrentDocumentobjArg1
 

Copyright © 2003, Dassault Systèmes. All rights reserved.