*geomupdate

Update CAD files with modified data.

Syntax

*geomupdate entity_type mark_id ?<option1>=<value1>? ?<option2>=<value2>? ... ?<optionN>=<valueN>?

Type

HyperMesh Tcl Modify Command

Description

Update CAD files with modified data. Currently supported for Parasolid and NX only. For NX, a valid license and installation is required.

Inputs

entity_type
The type of entity to update. Valid values are parameters (NX only), parts, components, points, lines, surfaces and solids.
mark_id
The ID of the mark of entities to update. Valid values are 1 and 2.
<name>=<value>
The additional name=value options. These are optional and may be specified in any order.
DataToUpdate=<value>
None - When entity_type is parameters
Metadata - For all other entity types
FileVersionSameAsCAD
If specified, saves the file in the version it was created. Otherwise, saves in the latest version. Valid for Parasolid only.
MetadataPrefixFilter=<value>
The metadata prefix to remove when RemoveMetadataPrefix=on.
OutputFolder=<directory>
The directory to write the CAD files when OverWriteRepresentation=off.
If not specified the start-in directory is used.
OverWriteRepresentation=<value>
off - Do not overwrite representations and write to OutputFolder instead. The new representation files are updated on the corresponding parts for parmeter updates.
on - Overwrite the original representation files (default)
RemoveMetadataPrefix=<value>
off - Do not remove any metadata prefixes (default)
on - Remove the metadata prefix specified by MetadataPrefixFilter.
UpdateColorFrom=<value>
The color of the CAD entities are updated based on the color coming from the component, part or metadata (UpdateMetaDataAsColor must then be specified). Default is to not update colors.
UpdateMetaDataAsColor=<value>
The metadata to use for updating the color when UpdateColorFrom=metadata.
UpdateMetaDataAsName=<value>
The metadata to use for updating the name when UpdateNameFrom=metadata.
UpdateNameFrom=<value>
The name of the CAD entities are updated based on the name coming from the component, part or metadata (UpdateMetaDataAsName must then be specified). Default is to not update names.

Example

To update parameters 1-3, overwriting the original representations:

*createmark parameters 1 1-3
*geomupdate parameters 1 

To update parameters 1-3, writing new representations to C:\my_reps:

*createmark parameters 1 1-3
*geomupdate parameters 1 OverWriteRepresentation=1 OutputDirectory=C:/my_reps

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}

Version History

2019.1