*importbom
Imports a UDMXML BOM file into a given part.
Syntax
*importbom file_name options
Type
HyperMesh Tcl Modify Command
Description
Imports a UDMXML BOM file into 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 read.
 - options
 - The string containing all the <option>=<value> pairs.
- importoption=<value>
 - The import option as child, replace or merge.
 - overwriteattribs=<value>
 - Valid when importoption=merge.
 - subsystem=<value>
 - 0 - Do not import subsystem structure.
 - target_part_hmid=<value>
 - The HyperMesh part ID to be used as root for importing when importoption=child.
 - target_part_udmid=<value>
 - If target_part_hmid is not provided, this is the UDMID of the HyperMesh part to be used as root for importing when importoption=child.
 
 
Example
Import UDMXML BOM under UDM part ID $udmid from file C:/temp/exportedbom.xml:
*importbom C:/temp/exportedbom.xml "importoption=child overwriteattribs=1 target_part_udmid=$udmid"
    Errors
if { [ catch {command_name...} ] } {
   # Handle error
}Version History
2019.1
2020 - Added new option subsystem.