Analysis Modeler |
Export/Import of Displacements |
![]() |
This use case shows you how to export displacements from analysis assembly to the specified sub-analysis. This macro opens an analysis assembly document and exports the displacement. With the use of Edit/Search..., all of the sub-analyses are selected and displacements are exported for each one of them. This scenario is available only with the Generative Assembly Structural Analysis (GAS) product.
|
|||||
![]() |
CAAAniPreProExportImportDisp is launched in CATIA [1]. No open document is needed. CAAAniPreProExportImportDisp.catvbs is located in the CAAScdAniUseCases module. Execute macro (Windows only).
|
|||||
![]() |
CAAAniPreProExportImportDisp includes the following steps:
Prolog
Open the Analysis document. The Analysis document is retrieved from
the documentation installation path, this path is stored in the
Extracting the analysis documents and analysis models and cases
According to the general Analysis Document structure, this macro uses standard procedures to navigate/retrieve the required objects. First, from the Document, we find the Analysis Manager Object, and then Analysis Models, from analysis models we retrieve the analysis cases. Selecting using edit search
Using the edit search we select all the analysis managers in the document. There will be one analysis manager corresponding to each sub-analysis, and an additional one that corresponds to the analysis assembly document. It is important that we remove the analysis manager corresponding to analysis assembly from the selected objects as we need analysis managers of sub-analysis only. We take AnalysisExport interface from the analysis set which is inside the analysis assembly. We also update the analysis set before exporting.Exporting and importing displacements
Here we run a loop over the selected sub-analyses and export the displacements. The export method requires the full path of the output file, including the file name and extension. Hence we append the file name and extension. We create a new solution case in the sub-analysis and import the displacementsEpilog
To run the macro interactively CATDocView environment variable must be defined. |
[Top]
This use case has shown how to export and import the displacements.
[Top]
[1] | Replaying a Macro |
[Top] |
Copyright © 2001, Dassault Systèmes. All rights reserved.