*fileupdate

Compares and updates an incoming HyperMesh file with the current model and generates comparison results.

Syntax

*fileupdate name comparerule keepremovedparts keywordstofilter

Type

HyperMesh Tcl Modify Command

Description

This command compares and updates the parts present in the incoming *.hm model file with the session model and creates a Partsets category with comparison results.

Inputs

name
The full path of the *.hm file to be compared with the session model.
comparerule=<value>
This specifies the revision rule to be compared.
1 - Only Major revision will be compared. (default)
2 – Major and Study revision will be compared.
3 – Major, Study, Library revision will be compared.
keepremovedparts =<value>
Keep the parts that exist in session and do not exist in the incoming file.
0 - Deletes the removed parts. (default)
1 - Keep the removed parts.
keywordstofilter=<value>
Comma separated list of parts to ignore comparison. It can be the complete name or a substring of a name.

Examples

To compare and update from the file C:/temp/BOMPartImport.hm:
*fileupdate "C:/temp/BOMPartImport.hm"
To keep the removed parts:
*fileupdate "C:/temp/BOMPartImport.hm" keepremovedparts=1
To filter a few parts like “LeftOuter_A” and “LeftInner_A _Weld” and ignore them from comparison:
*fileupdate "C:/temp/BOMPartImport.hm" keywordstofilter="LeftOuter_A,Weld"
To compare and update using Major revision:
*fileupdate "C:/temp/BOMPartImport.hm" comparerule=1

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

2025.1