hm_plotshape
Creates a graphical shape.
Syntax
hm_plotshape entity_type <select_type>=<selection> shape=<shape> ?<option1>=<value1>? ?<option2>=<value2>? ... ?<optionN>=<valueN>?
Type
HyperMesh Tcl GUI Command
Description
Creates a graphical shape.
Inputs
- entity_type
- The type of entity to create shapes for. Valid values are nodes.
- <select_type>=<selection>
- The entity or entities to create shapes for.
- shape=<shape>
- The shape to create. Valid values are box, cone, cylinder, ellipsoid, frustum and sphere.
- height=<value>
- The height for shape=cone, shape=cylinder and shape=frustum.. Default 1.0.
- l1=<value>
- The x-component for shape=box. Default 1.0.
- l2=<value>
- The y-component for shape=box. Default 1.0.
- l3=<value>
- The z-component for shape=box. Default 1.0.
- radius=<value> or r1=<value>
- The radius for shape=cone, shape=cylinder and shape=sphere.. The x-component for shape=ellipsoid. The top radius for shape=frustum. Default 3.0.
- r2=<value>
- The y-component for shape=ellipsoid. The bottom radius for shape=frustum. Default 3.0.
- r3=<value>
- The z-component for shape=ellipsoid. Default 3.0.
- color=<color>
- The color to use for the shape. Valid values are 1-64. If not specified, 1 is used.
- drawmode=<location>
- 0 - Wireframe
- transparency=<value>
- The transparency of the shape. If not specified, no transparency is used.
- system=<id>
- The coordinate system to which the shape must be oriented. Default is global system.
Examples
To create a box shape with dimensions 10x15x20 on nodes 1-100:
*createmark nodes 1 1-100
hm_plotshape nodes mark=1 shape=box l1=10 l2=15 l3=20
To create a box shape with dimensions 10x15x20 on nodes 1-100 using color 20 and wireframe:
*createmark nodes 1 1-100
hm_plotshape nodes mark=1 shape=box l1=10 l2=15 l3=20 color=20 drawmode=0
Errors
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
2019.1