*exportbom
Exports a UDMXML BOM file for a given part.
Syntax
*exportbom file_name options
Type
HyperMesh Tcl Modify Command
Description
Exports a UDMXML BOM file for a given part.
<option>=<value> options must be enclosed in quotes, but can be provided in any order.
Inputs
- file_name
- The name and path of the file to write.
- options
- The string containing all the <option>=<value> pairs.
- part_hmid=<value>
- The HyperMesh part ID to be used as root for exporting.
- part_udmid=<value>
- If part_hmid is not provided, this is the UDMID of the HyperMesh part to be used as root for exporting.
- recursive=<value>
- 0 - Only the top level elements under the part ID are exported.
- subsystem=<value>
- 0 - Do not export subsystem structure.
Example
*exportbom C:/temp/exportedbom.xml "part_hmid=2"
Errors
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
2019.1
2020 - Added new option subsystem.