*exportbom
Exports a UDMXML BOM file for a given part.
Syntax
*exportbom file_name "?option1=<value1>? ?option2=<value2>? ... ?optionN=<valueN>?"
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.
- 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.