*detach_geom
Surfaces and solids that are contained in input selection, are topologically detached from either the rest of the model, or from another selection.
Syntax
*detach_geom entitytype=<value> mark0=<mark_id> ?mark1=<mark_id>? ?organize=<value>?
Type
HyperMesh Tcl Modify Command
Description
This command detaches the selected geometry topologically from another selection or from the rest of the model. In mark0, the user gives the selection of geometry which will be detached from other geometries. If mark1 selection is provided, then the geometry in mark0 is detached only from the geometry in mark1. If mark1 is not provided, then the geometry in mark0 is detached from the rest of the model.
Additionally, the boundary surfaces of solids, which are in the input selection, are also organized into solid’s component, if they are found to be in different components. The reorganization of solid boundary surfaces is controlled by the optional argument organize.
Inputs
- entitytype=<value>
- The type of entities selected in mark0 and mark1 as input. Valid entity types are surfaces, solids, components, parts and subsystems.
- mark0=<mark_id>
- The ID of the mark containing the input entities that are going to be detached from other geometries. Valid values are 1 and 2.
- ?mark1=<mark_id>?
- The ID of the mark containing a second set of geometry. If this input is provided, entities on mark0 are detached only from the entities on mark1. Otherwise, entities with mark0 are detached from all the other entities in the model. Valid values are 1 and 2.
- ?organize=<value>?
- Controls the reorganization of solid boundary surfaces. Valid values are 0 (default) or 1. If set to 1, boundary surfaces of solids on mark0 are reorganized so that they are in the same component as the solid.
Examples
*createmark parts 1 4
*detach_geom entitytype=parts mark0=1 organize=1
*createmark surfaces 1 60 49 42 58 7 11
*createmark surfaces 2 52 38 29
*detach_geom entitytype=surfaces mark0=1 mark1=2
Errors
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
2024