*findflangesinit

Initializes the process to find flanges in shell meshes.

Syntax

*findflangesinit entity_type mark_id dimension feature_angle consider_closed_shells param

Type

HyperMesh Tcl Modify

Description

Initializes the process to find flanges in shell meshes.

The process of finding flanges requires the initialization of the process using *findflangesinit. This initialization process requires the components or elements utilized by subsequent * findflangestoposhell and *findflangesproximityshell commands. To utilize different input components or elements, the *findflangesinit command needs to be rerun. After completing the find flanges process, the command *findflangesend should be called to clear the memory.

Inputs

entity_type
The entity types to find flanges in. Valid values are comps and elems
mark_id
The mark ID containing the entities. Valid values are 1 and 2.
dimension
A filter defining the dimension of the entities to find flanges in. Valid values are:
0 - No dimension imposed, can find flanges in both shell and solid elements.
2 - Find flanges only in shell meshes.
3 - Find flanges only in solid meshes.
Currently, only dimension 2 is supported, so all values are taken as 2.
feature_angle
Used to identify each connected sequence of feature edges. Specifically a feature edge is one whose adjoining faces form an angle greater than this value. Acceptable values are [0.0, 180], otherwise closer extreme is used. Generally, this parameter is only used when finding holes on solid elements. It is used for shell elements when finding features – an additional option unrelated to finding flanges.
consider_closed_shells
0 - Closed shell thin solids are not considered as input. Only standard shell mid-meshes are considered (default).
1 - Closed shell thin solids are considered as input, along with standard shell mid-meshes.
param
Reserved for future use. Set to 0.

Example

To find all flanges in shell elements of the displayed components using a feature angle of 30 degrees, and to create auto pitch points using a search distance of 0.5, a spot pitch distance of 1.5, an end offset of 2.0, and a free edge distance of 0.1:
*createmark comps 2 displayed
*findflangesinit components 2 2 30 0 0 0
*findflangestoposhell 0 1 4.0 0.0 0.0 0.0 0.0 0 0 0 0.5 0.5 0.0 45.0 0 0 0 0.0
*findflangesproximityshell 0 1 0.5 45.0 -1 1.5 2.0 0.1 0 0 0.0
*findflangesend

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

11.0.101