pycatia.eno_cd5_interfaces.cd5_engine_v6_r2015¶
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_engine_v6_r2015.CD5EngineV6R2015(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectENOCD5Interfaces.CD5EngineENOCD5Interfaces.CD5EngineV6R2014xCD5EngineV6R2015Represents the ENOVIA V6 Integration Engine, that is to say the entry point tothe CATIA/ENOVIA V6 Integration.It allows end user to realize the various operations like ENOVIANewNote that all operations performed from this interface are the same asoperations available in the ENOVIA V6 menu in CATIA, unless most of them areexecuted without panel.Example:The following example indicates how to retrieve the ENOVIA V6 IntegrationEngine.Dim oCD5Engine As CD5EngineV6R2015Set oCD5Engine = CATIA.GetItem(“CD5EngineV6R2015”)- get_i_ds_from_physical_i_ds(i_physical_i_ds: tuple) CD5IDs ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetIDsFromPhysicalIDs(CATSafeArrayVariant iPhysicalIDs) AsCD5IDsReturns CD5IDs of the objects for the given PhysicalIDs.Parameters:iPhysicalIDsPhysical IDs of the objectsReturns:The created CD5ID array of the objectsThrows:-1697450280 : CATIA is not connected to ENOVIA V6.Example:The following example returns the ENOIACD5IDs of theobject:iPhysicalIDs : “6EFB8D2E00008A445257E36100000DF7,6EFB8D2E00008A445257E3610000090”.Dim IDs As CD5IDsSet IDs = oCD5Engine.GetIDsFromPhysicalIDs(iPhysicalIDs)
- Parameters:
i_physical_i_ds (tuple) –
- Return type:
- get_id_from_physical_id(i_physical_id: str) CD5ID ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetIDFromPhysicalID(CATBSTR iPhysicalID) As CD5IDReturns CD5ID of the object for the given PhysicalID.Parameters:iPhysicalIDPhysical ID of the objectReturns:The created CD5ID of the objectThrows:-1697450280 : CATIA is not connected to ENOVIA V6.Example:The following example returns the ENOIACD5ID of theobject:iPhysicalID : “6EFB8D2E00008A445257E36100000DF7”.Dim ID As CD5IDSet ID = oCD5Engine.GetIDFromPhysicalID(“6EFB8D2E00008A445257E36100000DF7”)
- Parameters:
i_physical_id (str) –
- Return type:
- get_properties(i_enoiacd5_id: CD5ID) CD5Properties ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetProperties(CD5ID iENOIACD5ID) As CD5PropertiesReturns a collection of all the ENOVIA V6 properties for a given Objectdefined by Type, Name, Revision & Version.Parameters:iENOIACD5IDThe ENOIACD5ID object id representing ENOVIA V6 Object which is tobe explored.Returns:The collection of properties of the ENOVIA object passes as iENOIACD5IDThrows:-1697450280 : CATIA is not connected to ENOVIA V6.-1691273589 : Invalid object type-1857112104 : Name or Type EmptyExample:The following example retrieves all the ENOVIA V6 properties from agiven ENOIACD5ID.Dim ObjID As CD5IDSet ObjID = oCD5Engine.GetIDFromTNRV(“Versioned CATPart”, “Part_Name”, “A”, “0”)Dim oCD5Properties As CD5PropertiesSet oCD5Properties = oCD5Engine.GetProperties(ObjID)
- Parameters:
i_enoiacd5_id (CD5ID) –
- Return type:
- get_properties_of_document(i_catia_document: Document) CD5Properties ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetPropertiesOfDocument(Document iCATIADocument) AsCD5PropertiesReturns a collection of all the ENOVIA V6 properties for a given ENOVIAobject.Parameters:iCATIADocumentThe document representing ENOVIA V6 Object which is to be explored.Returns:The collection of properties of the ENOVIA object passes asiCATIADocumentThrows:-1697450280 : CATIA is not connected to ENOVIA V6.Example:The following example retrieves all the ENOVIA V6 properties for agiven ENOVIA object.Dim docCD5ID As CD5IDSet docCD5ID = oCD5Engine.GetIDFromTNR(“CATProduct For Team”, “MyProduct”, “—“)Dim objDocument As DocumentSet objDocument = oCD5Engine.Open(docCD5ID)Dim oCD5Properties As CD5PropertiesSet oCD5Properties = oCD5Engine.GetPropertiesOfDocument(objDocument)
- Parameters:
i_catia_document (Document) –
- Return type:
- get_properties_of_embedded_component(i_catia_document: Document, i_embedded_component_name: str) CD5Properties ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetPropertiesOfEmbeddedComponent(DocumentiCATIADocument,CATBSTR iEmbeddedComponentName) As CD5PropertiesReturns a collection of all the ENOVIA V6 properties for a given EmbeddedComponent.Parameters:iCATIADocumentThe document representing ENOVIA V6 Object in which the targetembedded component resides.iEmbeddedComponentNameName of the embedded component to be explored.Returns:The collection of properties of the embedded component passed as inputThrows:-1697450280 : CATIA is not connected to ENOVIA V6.Example:The following example retrieves all the ENOVIA V6 properties for agiven Embedded Component.Dim docCD5ID As CD5IDSet docCD5ID = oCD5Engine.GetIDFromTNR(“CATProduct For Team”, “MyProduct”, “—“)Dim objDocument As DocumentSet objDocument = oCD5Engine.Open(docCD5ID)Dim oCD5Properties As CD5PropertiesSet oCD5Properties = oCD5Engine.GetPropertiesOfEmbeddedComponent(objDocument,“Embedded_Component_Name”)
- Parameters:
i_catia_document (Document) –
i_embedded_component_name (str) –
- Return type:
- new_from(i_cd5_template: CD5Template, i_name: str, i_type: str) Document ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func NewFrom(CD5Template iCD5Template,CATBSTR iName,CATBSTR iType) As DocumentCreates a new object from given template.Parameters:iCD5TemplateThe Template object from which we want to create a new object.iNameThe name for the new object.iTypeThe ENOVIA type for the new object.Returns:The created Document.Throws:-1697450280 : CATIA is not connected to ENOVIA V6.-1782306828 : Template object is assigned more than one file.-1774688310 : Template object is not assigned any file.-1866082326 : File of same name as that of file attached to Template object is present on checkout directory.-1739257732 : The name for the new object contains unsupported characters.-1706631745 : An object with the same name as that of new object is already present in ENOVIA.-1844336441 : File of same name as that of new object is already present on checkout directory.Example:The following example creates a new object to be loaded in the CATIAsession:iCD5Template : template.iName : “NewPart”.Dim types As Arraytypes = oTemplateType.PossibleTypesDim document As CATIADocumentSet document = oCD5Engine.NewFrom(template, “NewPart”, types(0))
- Parameters:
i_cd5_template (CD5Template) –
i_name (str) –
i_type (str) –
- Return type:
- property template_types: CD5TemplateTypes¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property TemplateTypes() As CD5TemplateTypes (Read Only)Returns (gets) the list of all “Template Types”.Example:The following example gets the list of Template Types.Dim oTemplateTypes As ENOIACD5TemplateTypesSet oTemplateTypes = oCD5Engine.TemplateTypes
- Return type: