All Frameworks  Object Hierarchy  This Framework  Indexes   

AnalysisV4Services (Object)

The interface to access a CATIAAnalysisV4Services.

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")
 

Method Index

GetStorageInfo
Gets V4 External Storage information stored in a model.
PrintAssembledSetsInfo
Gets sets list for a model included in a V4 Session.
PrintCouplingAnalysisInfo
Gets V4 Coupling analysis information.
PrintSessionInfo
Gets V4 Session information.

Methods


o Func GetStorageInfo( iModelPath,
oPrefix) As
Gets V4 External Storage information stored in a model.
Parameters:
iModelPath:
Path of model file.
oExternal:
Storage Path.
oPrefix:
Directory prefix: Something like "D1998124T083802".
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
 
o 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.
iPrintPath:
Path where to create the dump file.
iSubmesh:
Submesh Number of the modelo.
Note that if the file already exists it will be replaced.
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 
 
o Sub PrintCouplingAnalysisInfo( iSessionPath,
iPrintPath,
iSubmesh)
Gets V4 Coupling analysis information.
Parameters:
iSessionPath:
Path of the model file.
iPrintPath:
Path where to create the dump file.
iSubmesh:
Sub mesh number, the file will dump at the level of this submesh.
Note that if file already exists it will be replaced.
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 
 
o Sub PrintSessionInfo( iSessionPath,
iPrintPath)
Gets V4 Session information. The file is made of submesh & model name identification.
Parameters:
iSessionPath:
Path of session file.
iPrintPath:
Path where to create the dump file.
Note that if the file already exists it will be replaced.
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 
 

Copyright © 2003, Dassault Systèmes. All rights reserved.