This service provides tools to extract analysis information stored in V4 model and session.
Note: The implementation of this API requires specific Licensing: V4A product needs to be installed.
To get access to this service:
Dim SAMV4Service As AnalysisV4Services
Set SAMV4Service = CATIA.GetItem("SAMV4Service")
Methods
- Func GetStorageInfo( iModelPath, oPrefix) As
-
Gets V4 External Storage information stored in a model.
- Parameters:
-
- iModelPath:
- Path of model file.
dd> - oExternal:
- Storage Path. dd>
- oPrefix:
- Directory prefix: Something like "D1998124T083802". dd>
- Example:
-
This example return external storage information for a model path
Dim SAMV4Service As AnalysisV4Services Set SAMV4Service = CATIA.GetItem("SAMV4Service") Dim Prefix As String Prefix = "" Dim PathStorage As String Dim sDocPath As String sDocPath = "E:\mymodel.model" PathStorage = SAMV4Service.GetStorageInfo(sDocPath,Prefix) CATIA.SystemService.Print "GetStorageInfo for Model: " & sDocPath CATIA.SystemService.Print "GetStorageInfo PathStorage: " & PathStorage & " Prefix " & Prefix
- Sub PrintAssembledSetsInfo( iSessionPath, iPrintPath, iSubmesh)
-
Gets sets list for a model included in a V4 Session.
The generated file contains names of load, restraint, non structural mass and displacement sets for a given submesh number.
- Parameters:
-
- iSessionPath:
- Path of session file.
dd> - iPrintPath:
- Path where to create the dump file.
dd> - iSubmesh:
- Submesh Number of the modelo.
Note that if the file already exists it will be replaced. dd>
- Example:
-
This example extract assembled sets information.
Dim SAMV4Service As AnalysisV4Services Set SAMV4Service = CATIA.GetItem("SAMV4Service") Dim sSession As String sSession = "E:\MYSESSION.session" Dim sSumpFile As String sSumpFile = "E:\MyFile.txt" SAMV4Service.PrintAssembledSetsInfo sSession,sSumpFile,120
- Sub PrintCouplingAnalysisInfo( iSessionPath, iPrintPath, iSubmesh)
-
Gets V4 Coupling analysis information.
- Parameters:
-
- iSessionPath:
- Path of the model file.
dd> - iPrintPath:
- Path where to create the dump file.
dd> - iSubmesh:
- Sub mesh number, the file will dump at the level of this submesh.
Note that if file already exists it will be replaced. dd>
- Example:
-
This example extracts sets information.
Dim SAMV4Service As AnalysisV4Services Set SAMV4Service = CATIA.GetItem("SAMV4Service") Dim sSession As String sSession = "E:\MYSESSION.session" Dim sSumpFile As String sSumpFile = "E:\MyCouplingAnalysisFile.txt" SAMV4Service.PrintCouplingAnalysisInfo sSession,sSumpFile, 120
- Sub PrintSessionInfo( iSessionPath, iPrintPath)
-
Gets V4 Session information.
The file is made of submesh & model name identification.
- Parameters:
-
- iSessionPath:
- Path of session file.
dd> - iPrintPath:
- Path where to create the dump file.
Note that if the file already exists it will be replaced. dd>
- Example:
-
This example extract session information.
Dim SAMV4Service As AnalysisV4Services Set SAMV4Service = CATIA.GetItem("SAMV4Service") Dim sSession As String sSession = "E:\MYSESSION.session" Dim sSumpFile As String sSumpFile = "E:\MyFile.txt" SAMV4Service.PrintSessionInfo sSession,sSumpFile