*sketchintersect

Adds intersected curves into the sketch by intersecting selected entities with the sketch work plane.

Syntax

*sketchintersect sketch_id entity_type mark_id ?create_entities? ?only_displayed?

Type

HyperMesh Tcl Modify Command

Description

Adds intersected curves into the sketch by intersecting selected entities with the sketch work plane.

Inputs

sketch_id
The ID of the sketch entity.
entity_type
The type of selected entities. Valid values are parts, solids, and surfaces.
mark_id
The ID of the mark containing the entities. Valid values are 1 and 2.
create_entities
0 - Intersected curves are added as guide curves in the sketch.
1 - Intersected curves are added as sketch geometries.
only_displayed
0 - All entities in the input mark are considered.
1 - Only displayed entities in the input mark are considered.

Examples

To add intersected curves as sketch geometries by intersecting the work plane of sketch ID 5 with all displayed solids:
*createmark solids 1 all
*sketchintersect 5 solids 1 1 1

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