ctx::ui
Queries and modifies the active context.
Syntax
ctx::ui method ?selection_name? ?option value option value...?
Type
HyperWorks ContextDescription
Queries and modifies the active context.
Methods
- add parent_tag
- Adds a new item to the active context.
- blockredraw ?value?
- Blocks the context GUI update. Valid values are 0 (off) and 1 (on). If no value is provided, the command returns the active state.
- delete item_tag
- Removes the specified item from the active context.
- get item_tag attribute
- Returns the specified attribute for the given item.
- set item_tag -attribute value
- Updates the value of the specified attribute for the given item.
- insert parent_tag position_tag
- Adds a new item to the active context at a specific position.
- post item_tag
- Displays the item with the specified tag.
- unpost item_tag
- Hides the item with the specified tag.
- print ?item_tag?
- Returns the XML definition of the active context or of a specific item if an item tag is provided.
Examples
ctx::ui print
ctx::ui set meshtype -values “Advanced Free Mapped”
Errors
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
2022.1