CAD Parameter Update

Updating Inspire, CATIA, and NX parameters to generate modified CAD designs.

It is often required to make CAD design changes as part of an optimization or design study. Making such changes to the original CAD files often requires scripting and customization. Inspire/CATIA/NX parameters can now be easily modified directly in HyperWorks. The changes made to the CAD file in Inspire/CATIA/NX are saved and automatically reloaded. A valid Inspire/CATIA/NX installation and license are required.

An environment variable CATIA_INSTALLATION_DIR pointing to the CATIA installation is required for importing CATIA parameters in HyperWorks.

Example: CATIA installation located at C:/Program Files/Dassault Systemes/B30

CATIA_INSTALLATION_DIR: C:/Program Files/Dassault Systemes/B30

Or, at the HyperWorks command window level, it can be set as below:

set ::env(CATIA_INSTALLATION_DIR) "C:/Program Files/Dassault Systemes/B30"

The Inspire installation location needs to be specified in File > Preferences > Geometry > CAD

Limitations and Restrictions

This process involves the following considerations:
  1. Inspire/CATIA/NX files must be imported using the Parts option.
  2. Imported CATIA/NX parameters must be enabled with the proper name prefix.
  3. To enable parameter importing in NX, the <ALTAIRHOME>/io/afc_translators/bin/<platform>/ug_reader.ini file must be updated. Also, make sure all other options are set to their relevant states or values.
    Note: This is important because this file is used during the reload operation. If not defined properly, the reimported model may not be as expected.
  4. To enable parameter importing in CATIA, the <ALTAIRHOME>/hwdesktop/io/afc_translators/bin/<platform>/ct_reader.ini file must be updated. Also, make sure all other options are set to their relevant states or values.
    Note: This is important because this file is used during the reload operation. If not defined properly, the reimported model may not be as expected.
  5. Performing this operation clears the undo/redo history.
  6. All information stored in the part(s) associated with a modified parameter is purged.
  7. There is no support for automatic remeshing, or the application of loads/BCs.
  8. Variables present in the Variable Manager in Inspire are imported as parameters and fill the Variable Manager in HyperMesh as per the table below:
    Variables Type Parameters Type CAD Dimension
    Length Double/Double Expression Length
    Angle Double/Double Expression Angle
    Unitless Double/Double Expression Constant
    String String String
  9. If the parameters/variables already exist in the HyperMesh session, then imported variables are renamed with “_” as a suffix.
  10. When the HyperMesh session is empty (does have any components), sketching Units are modified to the Imported CAD file Units.
  11. A known limitation is that the Expression Parser used in the Variable Manager and HyperMesh parameters are different.
  12. Inspire parametric update of CAD is supported only on Windows.

Associated Tasks

You can specify whether to perform automatic updating when making parameter changes, or to delay updating using the CAD update tool. You can set this option in HyperWorks by going to File > Preferences > Geometry > CAD Section and selecting Show Updates Immediately.

Live Parameter Update

If you set the preference to allow immediate updates, changing any relevant parameter values (from within EE, via a script, and so forth) will immediately execute the update operation. If the CATIA/NX update operation is successful, the original CATIA/NX file is overwritten and parts associated with the modified parameter are purged and reloaded.

Delayed Parameter Update

If you set the preference to not allow immediate updates, changing any relevant parameter values (from within EE, via a script, and so forth) will not execute the update operation. Instead, you can use the CAD update tool to update parameters when necessary.

Results

After performing the update operation, the modified CATIA/NX CAD file is reloaded into HyperWorks. Also, a cad_updated.msg file is created in the HyperWorks start directory, which contains details about the update operation.


Figure 1.

Version History

2019.1 – Added NX CAD parameter support.

2021 – Added CATIA CAD parameter support (CATIA V5 format).

2022.2 – Added Inspire CAD parameter support.