It allows end user to realize ENOVIA V6 Integration operations such as Connection, Disconnection, Open, Save...
Note that all operations performed from this interface are the same as operations available in the ENOVIA V6 menu in CATIA, unless most of them are executed without panel.
- Example:
-
The following example indicates how to retrieve the ENOVIA V6 Integration Engine.
Dim oCD5Engine As CD5EngineV6R2014x Set oCD5Engine = CATIA.GetItem("CD5EngineV6R2014x")
Methods
- Func CreateSaveOperation( iScope) As
-
Creates the basic Save Operation object. It requires ENOVIA V6 connection.
- Parameters:
-
- iScope
- The scope of the Save Operation. dd>
- Returns:
- The created Save Operation. dd>
- Throws:
-
- -1697450280 : CATIA is not connected to ENOVIA V6.
- Example:
-
The following example creates a Save Operation with the whole session as scope on CD5Engine oCD5Engine:
Dim SaveOperation As CD5SaveOperation Set SaveOperation = oCD5Engine.CreateSaveOperation(CD5SaveOperation_Session)
- Func GenerateAutoname( iAutonameSeries, iCount) As
-
Generates and gets the Autonames for the given series. It requires ENOVIA V6 connection.
- Parameters:
-
- iAutonameSeries
- The Autoname Series for which we want to generate Autonames. dd>
- iCount
- The number of Autonames to be generated. dd>
- Returns:
- The array of generated Autonames. dd>
- Throws:
-
- -1697450280 : CATIA is not connected to ENOVIA V6.
- Example:
-
The following example generates and gets 1 Autoname for series "A Size":
Dim Autoname As CATBSTR Autoname = oCD5Engine.GenerateAutoname("A Size", 1)(0)
- Func GetAutonameSeries( iType) As
-
Gets the Autoname Series for an input type. It requires ENOVIA V6 connection.
- Parameters:
-
- iType
- The ENOVIA type of the Object ("CATIA Embedded Component"...). dd>
- Returns:
- The array of Autoname Series. dd>
- Throws:
-
- -1697450280 : CATIA is not connected to ENOVIA V6.
- Example:
-
The following example gets autoname series for CATIA Embedded Component:
Dim AutonameSeries As CATSafeArrayVariant AutonameSeries = oCD5Engine.GetAutonameSeries("CATIA Embedded Component")