Analysis Modeler |
Exporting Data on Images |
![]() |
This use case shows you how to export data on images using VB. The macro opens an Analysis document which already contains a computed Frequency case and images. Data is exported on Material fringe image which is created under Properties.1 as shown in the figure. Data is exported with and without mesh part id.
| ||||
![]() |
CAAAniPostProExportData is launched in CATIA [1]. No open document is needed. CAAAniPostProExportData is located in the CAAScdAniUseCases module. Execute macro (Windows only).
| ||||
![]() |
CAAAniPostProExportData includes the following steps:
Prolog
Open the Analysis document. The Analysis document is fetched in the
documentation installation path, this path has already been stored in the Retrieve Analysis Cases and Analysis Sets from Analysis Document
According to the general Analysis Document structure, this macro uses some standard procedures to navigate or retrieve the required objects. First, from the Document, we find the Analysis Manager Object, and the Analysis Model. Property set is retrieved from the list of analysis sets. From the property set list of images is retrieved and material fringe image is added to it. Generate the Report
The sOut variable stores the path of the folder in which the repots is generated. The method ExportData is called on an image and it generates a txt or xls file. The exported file contains the values at different coordinates. If the data is exported using the method ExportDataWithMeshPartId then the exported data also contains the name of the mesh corresponding to each value. Epilog
To run the macro interactively CATDocView environment variable must be defined. |
[Top]
This use case has shown how to export data in txt and xls format.
[Top]
[1] | Replaying a Macro |
[Top] |
Copyright © 2001, Dassault Systèmes. All rights reserved.