Modules

Modules behavior for *setvalue.

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

*setvalue for Representations

*setvalue modules <select_type>=<selection> rep_action=<action> ?rep_name=<name>? ?rep_type=<type>? ?rep_filename=<filename>? ?rep_filecategory=<category>? ?rep_fileformat=<format>? ?detail_name=<name>? ?detail_value=<value>? ?detail_type=<type>?

rep_action=<action>
add - Add a representation. rep_name and rep_type are required, and rep_filecategory is optional.
addfile - Add a file to a representation. rep_name, rep_type, rep_filename and rep_fileformat are required
detailremove - Remove a detail from a representation. rep_name, rep_type and detail_name are required.
detailset - Add/modify a detail on a representation. rep_name, rep_type, detail_name, detail_value and detail_type are required.
remove - Remove a representation. rep_name and rep_type are required.
removefile - Remove a file from a representation. rep_name, rep_type and rep_filename are required
resetcurrent - Reset the current representation. No additional options are required.
setcurrent - Set the current representation. rep_name and rep_type are required.
rep_name=<name>
The name of the representation.
rep_type=<type>
The type of the representation.
rep_filename=<type>
The name of the representation file.
rep_fileformat=<type>
The format of the representation file.
rep_filecategory=<type>
The category of the representation file.
detail_name=<name>
The name of the detail when rep_action is detailremove or detailset.
detail_value=<value>
The value of the detail when rep_action is detailset. Its type must match detail_type, if specified.
detail_type=<type>
The type of the detail when rep_action is detailset.
  • boolean
  • double
  • int
  • string
If not specified, all possible values are tested.

*setvalue for Modules

*setvalue modules <select_type>=<selection> detail_action=<action> detail_name=<name> ?detail_value=<value>? ?detail_type=<type>?

detail_action=<action>
set - Adds/modifies a detail. detail_name, detail_value and detail_type are required.
remove - Removes a detail. detail_name is required.
detail_name=<name>
The name of the detail the detail_action is performed on.
detail_value=<value>
The value of the detail when detail_action is set. Its type must match detail_type, if specified.
detail_type=<type>
The type of the detail when detail_action is set.
  • boolean
  • double
  • int
  • string
If not specified, all possible values are tested.

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

Add a CAD representation named MyRep to the module with ID 4:

*setvalue modules id=4 rep_action=add rep_name="MyRep" rep_type="Cad"

Add a file to the CAD representation named MyRep for the module with ID 4:

*setvalue modules id=4 rep_action=addfile rep_name="MyRep" rep_type="Cad" rep_filename="C:/MyFiles/rep13.jt" rep_fileformat="JT"

Set (add/modify) a string detail named Identity with the value AK123 for the module with ID 4 and CAD representation MyRep:

*setvalue modules id=4 rep_action=detailset rep_name="MyRep" rep_type="Cad"
      detail_name="Identity" detail_value="AK123" detail_type=string

Set (add/modify) an integer detail named Identity_Type with the value 34 for the module with ID 4 and CAD representation MyRep:

*setvalue modules id=4 rep_action=detailset rep_name="MyRep" rep_type="Cad"
      detail_name="Identity_Type" detail_value="34" detail_type=int

Set (add/modify) a detail named Revision with the value 13.2.54-7.6.2 for the module with ID 4:

*setvalue modules id=4 detail_action=set detail_name="Revision"
    detail_value="13.2.54-7.6.2"

Remove the detail named Revision from the module with ID 4:

*setvalue modules id=4 detail_action=remove detail_name="Revision"

Version History

2017