*hwct_addselectedrepsfromlibrary
Adds specific representations from a connected library.
Syntax
*hwct_addselectedrepsfromlibrary entity_type string_array number_of_strings params
Type
HyperMesh Tcl Modify Command
Description
Adds specific representations from a connected library.
Inputs
- entity_type
- The type of connected library. Currently only supported for subsystems.
- string_array
- The ID of the input string array created using *createstringarray. Must be set to 1. This string must contain 3 quoted values for each representation prototype: "<proto unique ID>" "<proto library ID>" "<space separated list of rep library IDs>".
- number_of_strings
- The number of strings in the string array.
- params
- A quoted, comma separated string, containing additional optional name=value
parameters. Valid parameters are:
- load=<value>
- 0 - Do not load the rep alias for the subsystem
- overwrite=<value>
- 0 - Do not overwrite the session information
- repfolder=<value>
- The folder in which the representation exists.
Examples
Load a single representation from
C:/temp/subsystems:
*createstringarray 3 "Epsilon_A_000261" "2ba9bfe48108c345a41efd04a39ce3b7:3" "cb912ce6142b314399298d61f5f63917:2"
*hwct_addselectedrepsfromlibrary subsystems 1 3 "overwrite=1, repfolder=c:/temp/subsystems"
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
2020