Modules
Modules behavior for *setvalue.
*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.
- 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.
*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.
- 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.
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.
- 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.
- 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:
hm_getvalue modules id=4 detail_action=remove detail_name="Revision"
Version History
2017