pycatia.eno_cd5_interfaces.cd5_engine_v6_r2014x¶
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_r2014x.CD5EngineV6R2014x(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectENOCD5Interfaces.CD5EngineCD5EngineV6R2014xRepresents the ENOVIA V6 Integration Engine, that is to say the entry point tothe CATIA/ENOVIA V6 Integration.It allows end user to realize ENOVIA V6 Integration operations such asConnection, Disconnection, Open, Save…Note 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 CD5EngineV6R2014xSet oCD5Engine = CATIA.GetItem(“CD5EngineV6R2014x”)- create_save_operation(i_scope: int) CD5SaveOperation ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func CreateSaveOperation(CD5SaveOperation_Scope iScope) AsCD5SaveOperationCreates the basic Save Operation object. It requires ENOVIA V6connection.Parameters:iScopeThe scope of the Save Operation.Returns:The created Save Operation.Throws:-1697450280 : CATIA is not connected to ENOVIA V6.Example:The following example creates a Save Operation with the whole sessionas scope on CD5Engine oCD5Engine:Dim SaveOperation As CD5SaveOperationSet SaveOperation = oCD5Engine.CreateSaveOperation(CD5SaveOperation_Session)
- Parameters:
i_scope (int) – enum cd5_save_operation_scope
- Return type:
- generate_autoname(i_autoname_series: str, i_count: int) tuple ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GenerateAutoname(CATBSTR iAutonameSeries,short iCount) As CATSafeArrayVariantGenerates and gets the Autonames for the given series. It requires ENOVIAV6 connection.Parameters:iAutonameSeriesThe Autoname Series for which we want to generate Autonames.iCountThe number of Autonames to be generated.Returns:The array of generated Autonames.Throws:-1697450280 : CATIA is not connected to ENOVIA V6.Example:The following example generates and gets 1 Autoname for series “ASize”:Dim Autoname As CATBSTRAutoname = oCD5Engine.GenerateAutoname(“A Size”, 1)(0)
- Parameters:
i_autoname_series (str) –
i_count (int) –
- Return type:
tuple
- get_autoname_series(i_type: str) tuple ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetAutonameSeries(CATBSTR iType) AsCATSafeArrayVariantGets the Autoname Series for an input type. It requires ENOVIA V6connection.Parameters:iTypeThe ENOVIA type of the Object (“CATIA Embedded Component”…).Returns:The array of Autoname Series.Throws:-1697450280 : CATIA is not connected to ENOVIA V6.Example:The following example gets autoname series for CATIA EmbeddedComponent:Dim AutonameSeries As CATSafeArrayVariantAutonameSeries = oCD5Engine.GetAutonameSeries(“CATIA Embedded Component”)
- Parameters:
i_type (str) –
- Return type:
tuple