All Frameworks  Object Hierarchy  This Framework  Previous  Next  Indexes  

SchAppCntrDocLink (Object)

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


Manage a schematic connector.

Method Index

AppGetLink
AppGetLinkedDocs
Get a list of linked connectors, their documents' names, uuids, and 'open in session' statuses, and a publication name of the connectors.
AppIsLinkable
Query whether this connector and input connector can be linked.
AppLink
Create an external link to another connector.
AppLinkInit
Publish this connector to make it available for linking.
AppOpenLinkedDoc
Open a linked document.
AppUnLink
Remove external link to another connector.

Methods


o Sub AppGetLink(CATIASchListOfObjects oLCntrs,
CATIASchListOfBSTRs oLDocumentNames,
CATBSTR oPublicationName)
Deprecated:
V5R18 Use SchAppCntrDocLink.AppGetLinkedDocs instead. Get a list of linked connector(s) and its document names or publication name.
Parameters:
oLCntrs
A list of connectors that are linked to this connector.
oLDocumentNames
A list of document names containing the linked connector.
oPublicationName
The publication name of the connector(s) linked to this connector.
Example:
 Dim objThisIntf As SchAppCntrDocLink
 Dim objArg1 As SchListOfObjects
 Dim objArg2 As SchListOfBSTRs
 Dim strVar3 As String
  ...
 objThisIntf.AppGetLinkobjArg1,objArg2,strVar3
 
o Sub AppGetLinkedDocs(CATBSTR oPublicationName,
CATIASchListOfBSTRs oLDocumentName,
CATIASchListOfBSTRs oLDocumentUuid,
CATIASchListOfLongs oLOpenStatus,
CATIASchListOfObjects oLCntr)
Get a list of linked connectors, their documents' names, uuids, and 'open in session' statuses, and a publication name of the connectors.
Parameters:
oPublicationName
The publication name of the connector(s) linked to this connector.
oLDocumentName
A list of document names of the documents containing the linked connector(s).
oLDocumentUuid
A list of document UUIDs of the documents containing the linked connector(s).
oLOpenStatus
A list of integer flags specifying whether a linked document is open in the session or not (1 - yes; 0 - no).
oLCntr
A list of connectors that are linked to this connector.
Example:
 Dim objThisIntf As SchAppCntrDocLink
 Dim strVar1 As String
 Dim objArg2 As SchListOfBSTRs
 Dim objArg3 As SchListOfBSTRs
 Dim objArg4 As SchListOfLongs
 Dim objArg5 As SchListOfObjects
  ...
 objThisIntf.AppGetLinkedDocsstrVar1,objArg2,objArg3,objArg4,objArg5
 
o Sub AppIsLinkable(CATIASchAppConnector iSchConnector,
boolean oBYes)
Query whether this connector and input connector can be linked.
Parameters:
iSchConnector
The connector to link to.
oBYes
If TRUE, connectors can be linked.
Example:
 Dim objThisIntf As SchAppCntrDocLink
 Dim objArg1 As SchAppConnector
 Dim bVar2 As boolean
  ...
 objThisIntf.AppIsLinkableobjArg1,bVar2
 
o Sub AppLink(CATIASchAppConnector iSchConnector)
Create an external link to another connector.
Parameters:
iSchConnector
The connector to link to.
Example:
 Dim objThisIntf As SchAppCntrDocLink
 Dim objArg1 As SchAppConnector
  ...
 objThisIntf.AppLinkobjArg1
 
o Sub AppLinkInit(CATBSTR iPublicationName)
Publish this connector to make it available for linking.
Parameters:
iPublicationName
The publication name of connector.
Example:
 Dim objThisIntf As SchAppCntrDocLink
 Dim strVar1 As String
  ...
 objThisIntf.AppLinkInitstrVar1
 
o Sub AppOpenLinkedDoc(CATBSTR iDocumentName,
CATBSTR iDocumentUuid,
CATIADocument oDocument)
Open a linked document.
Parameters:
iDocumentName
Name of the document (from oLDocumentName list in AppGetLinkedDocs).
iDocumentUuid
Uuid of the document (from oLDocumentUuid list in AppGetLinkedDocs).
oDocument
Pointer to the document.
Example:
 Dim objThisIntf As SchAppCntrDocLink
 Dim strVar1 As String
 Dim strVar2 As String
 Dim objArg3 As Document
  ...
 objThisIntf.AppOpenLinkedDocstrVar1,strVar2,objArg3
 
o Sub AppUnLink(long iUnpublish)
Remove external link to another connector.
Parameters:
iUnpublish
iUnpublish = 0, do not delete publication connector (default) iUnpublish > 0, delete publication connector
Example:
 Dim objThisIntf As SchAppCntrDocLink
 Dim intVar1 As Integer
  ...
 objThisIntf.AppUnLinkintVar1
 

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