pycatia.analysis_interfaces.analysis_v4_services¶
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.analysis_interfaces.analysis_v4_services.AnalysisV4Services(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectAnalysisV4ServicesThe interface to access a CATIAAnalysisV4Services.This service provides tools to extract analysis information stored in V4 modeland session.Note: The implementation of this API requires specific Licensing: V4A productneeds to be installed.To get access to this service:Dim SAMV4Service As AnalysisV4ServicesSet SAMV4Service = CATIA.GetItem(“SAMV4Service”)- get_storage_info(i_model_path: str, o_prefix: str) str ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetStorageInfo(CATBSTR iModelPath,CATBSTR oPrefix) As CATBSTRGets 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 modelpathDim SAMV4Service As AnalysisV4ServicesSet SAMV4Service = CATIA.GetItem(“SAMV4Service”)Dim Prefix As StringPrefix = “”Dim PathStorage As StringDim sDocPath As StringsDocPath = “E:mymodel.model”PathStorage = SAMV4Service.GetStorageInfo(sDocPath,Prefix)CATIA.SystemService.Print “GetStorageInfo for Model: “ &sDocPathCATIA.SystemService.Print “GetStorageInfo PathStorage: “ &PathStorage & “ Prefix “ & Prefix
- Parameters:
i_model_path (str) –
o_prefix (str) –
- Return type:
str
- print_assembled_sets_info(i_session_path: str, i_print_path: str, i_submesh: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub PrintAssembledSetsInfo(CATBSTR iSessionPath,CATBSTR iPrintPath,long iSubmesh)Gets sets list for a model included in a V4 Session. The generated filecontains names of load, restraint, non structural mass and displacement setsfor 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 AnalysisV4ServicesSet SAMV4Service = CATIA.GetItem(“SAMV4Service”)Dim sSession As StringsSession = “E:MYSESSION.session”Dim sSumpFile As StringsSumpFile = “E:MyFile.txt”SAMV4Service.PrintAssembledSetsInfo sSession,sSumpFile,120
- Parameters:
i_session_path (str) –
i_print_path (str) –
i_submesh (int) –
- Return type:
None
- print_coupling_analysis_info(i_session_path: str, i_print_path: str, i_submesh: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub PrintCouplingAnalysisInfo(CATBSTR iSessionPath,CATBSTR iPrintPath,long 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 thissubmesh.Note that if file already exists it will be replaced.Example:This example extracts sets information.Dim SAMV4Service As AnalysisV4ServicesSet SAMV4Service = CATIA.GetItem(“SAMV4Service”)Dim sSession As StringsSession = “E:MYSESSION.session”Dim sSumpFile As StringsSumpFile = “E:MyCouplingAnalysisFile.txt”SAMV4Service.PrintCouplingAnalysisInfo sSession,sSumpFile, 120
- Parameters:
i_session_path (str) –
i_print_path (str) –
i_submesh (int) –
- Return type:
None
- print_session_info(i_session_path: str, i_print_path: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub PrintSessionInfo(CATBSTR iSessionPath,CATBSTR iPrintPath)Gets V4 Session information. The file is made of submesh & model nameidentification.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 AnalysisV4ServicesSet SAMV4Service = CATIA.GetItem(“SAMV4Service”)Dim sSession As StringsSession = “E:MYSESSION.session”Dim sSumpFile As StringsSumpFile = “E:MyFile.txt”SAMV4Service.PrintSessionInfo sSession,sSumpFile
- Parameters:
i_session_path (str) –
i_print_path (str) –
- Return type:
None