*sketchedit
Edits the sketch entity by adding/removing/modifying entities with various operations.
Syntax
*sketchedit <select_type>=<selection> operation=<value> ?<option1>=<value1>? ?<option2>=<value2>? ... ?<optionN>=<valueN>?
Type
HyperMesh Tcl Modify Command
Description
Edits the sketch entity by adding/removing/modifying entities with various operations.
Inputs
- <select_type>=<selection>
- The entity or entities that are to be queried. There are several ways to provide the
entities to be queried. Only one option can be used at a time:
- id=<sketch_id>
- The ID of the sketch entity.
- name=<sketch_name>
- The name of the sketch entity.
- operation=<value>
- The operation to perform. Valid values are:
- add - Add the new entities into the sketch.
- modify - Modify the existing entity data in the sketch.
- remove - Remove the entity/entities from the sketch.
- split - Split the entity into multiple entities.
- fillet - Add the fillet to the corner points.
- offset - Offset entities by offsetting chain with offset distance.
- mirror - Mirror entities.
- clone - Copy/cut entities and paste them in the same or a different sketch.
- <option>=<value>
- The method and its settings used for the operation.
Examples
To add a circle entity to sketch ID 1 with radius 2.0 and center at (0.0
0.0):
*sketchedit id=1 operation=add entitytype=circle creationmethod=circle_center_radius centerposition={0.0 0.0} radius=2.0000
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
2021.2