*multi_surfs_lines_merge

Merge selected set of surfaces into topologically valid body, optionally using input free lines to create additional trim lines on surfaces.

Syntax

*multi_surfs_lines_merge surf_mark_id line_mark_id options

Type

HyperMesh Tcl Modify

Description

This command takes surfaces from an input set specified by the selection mark surf_mark_id, finds intersections between them, creates trimming lines at the intersections, and equivalences the resulting surface edges; thus creating a topologically valid body from possibly overlapping surfaces.

Optionally, a set of lines specified by selection mark line_mark_id can be used to create additional edges on selected surfaces within proximity of those lines. This command uses the tolerance value specified as the cleanup tool in the Modeling Options panel (which also can be set using the *cleanuptoleranceset command) to calculate proximity and equivalence between edges. The options Parameter is reserved for future extensions of the command and must be set to 0. The surface selection mark (surf_mark_id) can have values 1 or 2. The Line selection mark (line_mark_id) can have values 0 (no lines used), 1 or 2.

Example

To find intersections and merge surfaces with IDs 30 and 31 into a single body:

*createmark surfs 1 30 31
*multi_surfs_lines_merge 1 0 0

To find intersections and merge all displayed surfaces into a single body.

*createmark surfs 1 “displayed”
*multi_surfs_lines_merge 1 0 0

To trim surface with ID 31 by free line with ID 9 using the value of 0.1 as a proximity tolerance:

*createmark surfs 1 31
*createmark lines 1 9
*cleanuptoleranceset 0.1
*multi_surfs_lines_merge 1 1 0

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}