*findflangesproximityshell

Finds flanges in shell meshes that are within a specified proximity.

Syntax

*findflangesproximityshell mark_id non_flanges max_proximity max_align auto_pitch_comp auto_pitch_spacing auto_pitch_offset auto_pitch_edge_distance output create_points_in_middle reserved

Type

HyperMesh Tcl Modify

Description

Finds flanges in shell meshes that are within a specified proximity. Flanges are found on elements or components specified by a previous call to *findflangestoposhell, but can also be found within the specified proximity of non-flange areas. Note that at least one side must have been identified as a flange. The output is either a mark, elements, or the creation of duplicate elements denoting where flanges where identified. This can also be used to create auto-pitch points.

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

mark_id
The mark ID containing the output flange elements. Valid values are 1 and 2.
If set to 0, duplicate elements are constructed from the identified elements and placed in the component ^face_flange_prox_shell.
The output_elems argument is used to decide what types of elements are output.
non-flanges
Defines if proximity should be extended to elements not identified as flanges. Valid values are:
0 - Only elements on flanges considered.
1 - Elements on one flange with other not on flange.
2 - Elements need not be on flanges
max_proximity
The distance that defines the maximum proximity to use.
max_align
The maximum angle between normals of facing elements.
auto_pitch_comp
Defines the component for auto pitch points. Valid values are:
< 0 - Use current component
> 0 - Use specified component ID
= 0 - Do not build
auto_pitch_spacing
Defines the spacing for auto-pitch points. Points are not created if set to 0.0.
auto_pitch_offset
Defines the initial offset for auto-pitch points. If set to 0.0, auto_pitch_spacing/2 is used.
auto_pitch_edge_distance
Defines the distance from the free edge for auto-pitch points.
output
The output type. Valid values are:
0 - No output
1 - Output all flange elements found within proximity
2 - Output elements on flanges not within proximity
3 - Output elements on flanges from which no auto-pitch points were created
create_points_in_middle
0 - Auto-pitch points are created on one of the flanges (default).
1 - Auto-pitch points are created at the midplane of the flanges.
reserved
Reserved for future use. Must be 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