Modules

Modules behavior for hm_getvalue.

There are several special behaviors of hm_getvalue for modules that are important to know.

hm_getvalue for Representations

hm_getvalue modules <select_type>=<selection> rep_name=<name> rep_type=<type> ?rep_udmid=<id>? ?detail_name=<name>?

rep_name=<name>
? - Returns a list of representations with their types and UDM IDs.
<name> - Used with rep_type, returns all details of a representation. If also used with detail_name, returns only that specified detail value.
rep_type=<type>
? - Used with rep_name to get the type of a representation.
<type> - Used with rep_name, returns all details of a representation. If also used with detail_name, returns only that specified detail value.
rep_udmid=<id>
? - Used with rep_name and rep_type to get the UDM ID of a representation.
<id> - Returns all details of the representation. If also used with detail_name, returns only that specified detail value.
detail_name=<name>
? - Returns the list of details for the representation.
<name> - Returns the specified detail value.

hm_getvalue for Modules

hm_getvalue modules <select_type>=<selection> detail_name=<name>

detail_name=<name>
? - Returns the list of details for the module.
<name> - Returns the specified detail value.

Representation Option Information

Both the name and type are required to define a representation uniquely. The UDM ID can be used, but it is not always available. So in every command that handles a representation both rep_name and rep_type are required.

Representation types (rep_type) usually have specific values, but are not strictly limited. The user must also be prepared to see other internally used values. As there is no locking to any specific values, the command does not check for the validity of this parameter. Typical values include:
  • CAD
  • Conn
  • Mesh

The file category (rep_filecategory) must have the same value as the representation type (rep_type). However, some use cases may set this to OnImport. Again, there is no locking to any specific values, and the command does not check for the validity of this parameter.

The file formats (rep_fileformat) also have specific values, but are not strictly limited:
  • rep_type is CAD
    • Acis
    • CATIA
    • CATIA V4
    • CATIA V5
    • CATIA V6
    • DXF
    • HMAscii
    • HyperForm
    • HyperMesh
    • Iges
    • JT
    • Parasolid
    • PDGS
    • Pro/E
    • SolidWorks
    • Step
    • STL
    • Unigraphics
    • VDAFS
  • rep_type is Conn
    • Connector
    • Weld
  • rep_type is Mesh
    • Abaqus
    • Actran
    • Ansys
    • Ansa
    • HMAscii
    • HyperForm
    • HyperMesh
    • Ls-Dyna
    • Madymo
    • Moldflow
    • Nastran
    • OptiStruct
    • Pamcrash
    • Pamcrash 2G
    • Permas
    • Radioss Block
    • Radioss Bulk
    • Stl

Examples

Get a list of representations for the module with ID 4:

hm_getvalue modules id=4 rep_name=?

Get all details for the module with ID 4 and CAD representation MyRep:

hm_getvalue modules id=4 rep_name="MyRep" rep_type="Cad"

Get all detail values for the module with ID 4 and CAD representation MyRep:

hm_getvalue modules id=4 rep_name="MyRep" rep_type="Cad" detail_name=?

Get a specific detail value for the module with ID 4 and CAD representation MyRep:

hm_getvalue modules id=4 rep_name="MyRep" rep_type="Cad" detail_name="Identity"

Get all detail values for the module with ID 4 :

hm_getvalue modules id=4 detail_name=?

Get a specific detail value for the module with ID 4:

hm_getvalue modules id=4 detail_name="Revision"

Version History

2017