Indexes   

SchSession (Object)

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( iDocType,
iBInteractive,
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( 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
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( iDoc) As
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( iApplicationID)
Set the current application ID.
Parameters:
iApplicationID
Application ID
Example:
 Dim objThisIntf As SchSession
 Dim strVar1 As String
  ...
 objThisIntf.SetCurrentApplicationIDstrVar1
 
o Sub SetCurrentDocument( iCurDoc)
Set the current document.
Parameters:
iCurDoc
Pointer to current document.
Example:
 Dim objThisIntf As SchSession
 Dim objArg1 As Document
  ...
 objThisIntf.SetCurrentDocumentobjArg1
 

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