pycatia.cat_sch_platform_interfaces.schematic_root¶
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-09-25 14:34:21.593357
Warning
The notes denoted “CAA V5 Visual Basic Help” are to be used as reference only. They are there as a guide as to how the visual basic / catscript functions work and thus help debugging in pycatia.
- class pycatia.cat_sch_platform_interfaces.schematic_root.SchematicRoot(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectSchematicRootRepresents the top node of the schematic object tree.From this node all the queries for lists of schematic objects can be made.Furthermore, all the factories handles can be obtained through thisinterface.- get_appl_obj_fact_from_virtual_type(i_application_id: str) SchAppObjectFactory ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetApplObjFactFromVirtualType(CATBSTR iApplicationID) AsSchAppObjectFactoryReturns the object factory for specific schematicapplication.Example:This example illustrates how to get the object factory of userdefined virtual type.User provides implementation to this type.Dim objSchPlatformRoot As SchematicRootDim objSchObjFact As SchAppObjectFactoryDim objProductRoot As ProductSet objProductRoot = CATIA.ActiveDocument.ProductSet objSchPlatformRoot = objProductRoot.GetTechnologicalObject (“SchematicRoot”)Set objSchObjFact = objSchPlatformRoot.GetApplObjFactFromVirtualType(“UserDefined”)(
- Parameters:
i_application_id (str) –
- Return type:
- get_application_object_factory(i_application_id: int) SchAppObjectFactory ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetApplicationObjectFactory(CatSchIDLApplicationID iApplicationID) AsSchAppObjectFactoryReturns the object factory for specific schematicapplication.Example:This example illustrates how to get the object factory of Pipingand Instrumentation Diagram application.Dim objSchPlatformRoot As SchematicRootDim objSchObjFact As SchAppObjectFactoryDim objProductRoot As ProductSet objProductRoot = CATIA.ActiveDocument.ProductSet objSchPlatformRoot = objProductRoot.GetTechnologicalObject (“SchematicRoot”)Set objSchObjFact = objSchPlatformRoot.GetApplicationObjectFactory(“CatSchIDLCATPID”)(
- Parameters:
i_application_id (int) – enum cat_sch_idl_application_id
- Return type:
- get_comp_group_from_catalog(i_catalog_entry_name: str, i_ctlg_doc: Document) SchComponent ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetCompGroupFromCatalog(CATBSTR iCatalogEntryName,Document iCtlgDoc) As SchComponentReturns specific component group entry in a schematic component catalogdocument.Example:This example illustrates how to get a specific component group entryin a schematic component catalog document.Dim objSchPlatformRoot As SchematicRootDim objSchComponent As SchComponentDim objProductRoot As ProductSet objProductRoot = CATIA.ActiveDocument.ProductSet objSchPlatformRoot = objProductRoot.GetTechnologicalObject (“SchematicRoot”)Dim objCtlgDoc As DocumentSet objCtlgDoc = CATIA.Documents.Open (“Electrical_ANSI_PartFunctions.catalog”)Set objSchComponent = objSchPlatformRoot.GetCompGroupFromCatalog (“JuncBox-TermBoard”,objCtlgDoc)
- Parameters:
i_catalog_entry_name (str) –
i_ctlg_doc (Document) –
- Return type:
- get_comp_symbol_from_catalog(i_catalog_entry_name: str, i_ctlg_doc: Document) SchGRR ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetCompSymbolFromCatalog(CATBSTR iCatalogEntryName,Document iCtlgDoc) As SchGRRReturns specific entry in a schematic component catalogdocument.Example:This example illustrates how to get a specific entry in a schematiccomponent catalog document.Dim objSchPlatformRoot As SchematicRootDim objSchGRRComp As SchGRRCompDim objProductRoot As ProductSet objProductRoot = CATIA.ActiveDocument.ProductSet objSchPlatformRoot = objProductRoot.GetTechnologicalObject (“SchematicRoot”)Dim objCtlgDoc As DocumentSet objCtlgDoc = CATIA.Documents.Open (“PID_ANSI_Equipment.catalog”)Set objSchGRRComp = objSchPlatformRoot.GetCompSymbolFromCatalog (“Blower”,objCtlgDoc)
- get_components() SchListOfObjects ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetComponents() As SchListOfObjectsReturns a list of schematic component instances under theroot.Example:This example illustrates how to get the list of component instancesfrom a schematic product document.Dim objSchPlatformRoot As SchematicRootDim objSchListComps As SchListOfObjectsSet objoSchListComps = objSchPlatformRoot.GetComponents
- Return type:
- get_drawing() DrawingRoot ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetDrawing() As DrawingRootRetrieves the drawing root in the schematic document.Example:This example illustrates how to get the drawing of a schematicdocument.Dim objSchPlatformRoot As SchematicRootDim objProductRoot As ProductSet objProductRoot = CATIA.ActiveDocument.ProductSet objSchPlatformRoot = objProductRoot.GetTechnologicalObject (“SchematicRoot”)Dim objDrawRoot As DrawingRootSet objDrawRoot = objSchPlatformRoot.GetDrawing
- Return type:
- get_drawing_standard() int ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetDrawingStandard() As CatDrawingStandardGet the drawing standard.Example:This example illustrates how to get the drafting standard of aschematic document.Dim objSchPlatformRoot As SchematicRootDim objSchLSymbols As SchListOfObjectsDim objProductRoot As ProductSet objProductRoot = CATIA.ActiveDocument.ProductSet objSchPlatformRoot = objProductRoot.GetTechnologicalObject (“SchematicRoot”)oDrwStd = objSchPlatformRoot.GetDrawingStandard
- Returns:
enum cat_drawing_standard
- Return type:
int
- get_interface(i_interface_name: str, i_object: AnyObject) AnyObject ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetInterface(CATBSTR iInterfaceName,AnyObject iObject) As AnyObjectReturns specific interface handle on a given object.Example:This example illustrates how to get a specific interface handle froma given object.Dim objSchPlatformRoot As SchematicRootDim objSchObjFact As SchAppObjectFactoryDim objProductRoot As ProductSet objProductRoot = CATIA.ActiveDocument.ProductSet objSchPlatformRoot = objProductRoot.GetTechnologicalObject (“SchematicRoot”)Set objSchObjFact = SchPlatformRoot.GetApplicationObjectFactory(“CatSchIDLCATPID”)Set objSchObjFact2 = objSchPlatformRoot.GetInterface (“CATIASchAppObjectFactory2”,SchObjFact)
- get_ref_components() SchListOfObjects ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetRefComponents() As SchListOfObjectsReturns a list of schematic component references under theroot.Example:This example illustrates how to get the list of component referencesfrom a schematic product document.Dim objSchPlatformRoot As SchematicRootDim objSchListComps As SchListOfObjectsSet objSchListComps = objSchPlatformRoot.GetRefComponents
- Return type:
- get_routes() SchListOfObjects ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetRoutes() As SchListOfObjectsReturns a list of schematic routes under the root.Example:This example illustrates how to get the list of routes from aschematic product document.Dim objSchPlatformRoot As SchematicRootDim objSchListRoutes As SchListOfObjectsSet objSchListRoutes = objSchPlatformRoot.GetRoutes
- Return type:
- get_sch_base_factory() SchBaseFactory ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetSchBaseFactory() As SchBaseFactoryReturns schematic base object factory.Example:This example illustrates how to get the schematic basefactory.Dim objSchPlatformRoot As SchematicRootDim objSchBaseFact As SchBaseFactoryDim objProductRoot As ProductSet objProductRoot = CATIA.ActiveDocument.ProductSet objSchPlatformRoot = objProductRoot.GetTechnologicalObject (“SchematicRoot”)Set objSchBaseFact = objSchPlatformRoot.GetBaseFactory
- Return type:
- get_schematic_session() SchSession ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetSchematicSession() As SchSessionReturns the schematic session the document containing the root isassociated with.Example:This example illustrates how to get the schematicsession.Dim objSchPlatformRoot As SchematicRootDim objSchSession As SchSessionDim objProductRoot As ProductSet objProductRoot = CATIA.ActiveDocument.ProductSet objSchPlatformRoot = objProductRoot.GetTechnologicalObject (“SchematicRoot”)Set objSchSession = objSchPlatformRoot.GetSession
- Return type:
- get_temporary_list_factory() SchTempListFactory ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetTemporaryListFactory() As SchTempListFactoryReturns the factory to create lists of various types. These lists will notbe saved with the model.Example:This example illustrates how to get the list factory from a schematicproduct document.Dim objSchPlatformRoot As SchematicRootDim objSchList As SchTempListFactoryDim objProductRoot As ProductSet objProductRoot = CATIA.ActiveDocument.ProductSet objSchPlatformRoot = objProductRoot.GetTechnologicalObject (“SchematicRoot”)Set objSchList = objSchPlatformRoot.GetTemporaryListFactory
- Return type:
- get_unassociated_symbols() SchListOfObjects ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetUnassociatedSymbols() As SchListOfObjectsReturns a list of unassociated symbol.Example:This example illustrates how to get a list of unassociatedsymbol.Dim objSchPlatformRoot As SchematicRootDim objSchLSymbols As SchListOfObjectsDim objProductRoot As ProductSet objProductRoot = CATIA.ActiveDocument.ProductSet objSchPlatformRoot = objProductRoot.GetTechnologicalObject (“SchematicRoot”)Set objSchLSymbols = objSchPlatformRoot.GetUnassociatedSymbols
- Return type:
- set_drawing_standard(i_drw_std: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetDrawingStandard(CatDrawingStandard iDrwStd)Set the drawing standard.Example:This example illustrates how to set the drafting standard of aschematic document.Dim objSchPlatformRoot As SchematicRootDim objSchLSymbols As SchListOfObjectsDim objProductRoot As ProductSet objProductRoot = CATIA.ActiveDocument.ProductSet objSchPlatformRoot = objProductRoot.GetTechnologicalObject (“SchematicRoot”)objSchPlatformRoot.SetDrawingStandard catISO
- Parameters:
i_drw_std (int) – enum cat_drawing_standard
- Return type:
None