*topologydrawupdate
Updates the draw options for a topology design variable.
Syntax
*topologydrawupdate name draw_type anchor_node first_grid coords num_coords mark_id
Type
HyperMesh Tcl Modify
Description
Updates the draw options for a topology design variable.
Inputs
- name
- The name of the topology design variable to update.
- draw_type
- Type of draw direction constraint. The possible values include:
- anchor_node
- Draw anchor node ID. This should be 0, if no anchor node exists or if coordinates are used for defining the anchor node.
- first_grid
- Grid ID that determines the direction of the first vector. This should be 0, if the first vector does not exist or if coordinates are used for defining the first grid.
- coords
- An array containing the anchor and first node coordinates such that cord[0], cord[1], and cord[2] are the x,y,z coordinates of the anchor node respectively. The array is created with the *createdoublearray command.
- num_coords
- The number of coordinate values. Currently, this is always equal to six.
- mark_id
- The ID mark that contains the obstacle properties. Only PSOLID properties may be chosen as obstacles.
Examples
Update topology design variable dv1 using node IDs 25 and 100 for the anchor node and first grid respectively and with "prop1" as an obstacle:
*createdoublearray 6 0 0 0 0 0 0
*createmark props 1 "prop1"
*topologydrawupdate "dv1" 1 25 100 1 6 1
Update topology design variable dv1 using coordinates for anchor node and ID 150 for the first grid, with "prop1" as an obstacle:
*createdoublearray 6 1.5 2.6 4.9 0 0 0
*createmark props 1 "prop1"
*topologydrawupdate "dv1" 1 0 150 1 6 1
Same as above, but with no obstacle:
*createdoublearray 6 1.5 2.6 4.9 0 0 0
*topologydrawupdate "dv1" 1 0 150 1 6 0
Errors
if { [ catch {command_name...} ] } {
# Handle error
}