pycatia.eno_cd5_interfaces.cd5_structure¶
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.eno_cd5_interfaces.cd5_structure.CD5Structure(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectCD5StructureRepresents the structure of an ENOVIA V6 object.Role: It represents the structure of an ENOVIA V6 root object on which it ispossible to include some sub components. Its final purpose is to perform aPartial Open on it, showing only the root and the sub components that werepreviously included. It is managed by CD5Engine.See also:CD5ID, CD5Engine- get_root() CD5ID ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetRoot() As CD5IDReturns the root ENOVIA V6 Identifier of the CD5Structure.Returns:The CD5ID.Example:The following example creates a Structure from “RootProduct” and getsits root identifier.Dim oCD5Engine As CD5EngineSet oCD5Engine = CATIA.GetItem(“CD5Engine”)Dim iRootCD5ID, oDummyCD5ID As CD5IDSet iRootCD5ID = oCD5Engine.GetIDFromTNR(“CATProduct For Team”, “RootProduct”, “—“)Dim oCD5Structure As CD5StructureSet oCD5Structure = oCD5Engine.GetStructure(iRootCD5ID)Set oDummyCD5ID = oCD5Structure.GetRoot()
- Return type:
- include(i_id: CD5ID) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub Include(CD5ID iID)Includes an sub component (identified by its ENOVIA V6 Identifier) for afuture Partial Open operation.Parameters:iIDThe ENOIACD5ID of the sub component to include.Example:The following example creates a Structure from “RootProduct” andincludes the object “IncludedPart”.Dim oCD5Engine As CD5EngineSet oCD5Engine = CATIA.GetItem(“CD5Engine”)Dim iRootCD5ID, iIncludedCD5ID As CD5IDSet iRootCD5ID = oCD5Engine.GetIDFromTNR(“CATProduct For Team”, “RootProduct”, “—“)Set iIncludedCD5ID = oCD5Engine.GetIDFromTNR(“CATProduct For Team”, “IncludedPart”, “—“)Dim oCD5Structure As CD5StructureSet oCD5Structure = oCD5Engine.GetStructure(iRootCD5ID)oCD5Structure.Include(iIncludedCD5ID)
- Parameters:
i_id (CD5ID) –
- Return type:
None