*detectandcreatefeatures
Detect all feature types within the filter options and create feature entities.
Syntax
*detectandcreatefeatures ?<option1>=<value1>? ?<option2>=<value2>? ... ?<optionN>=<valueN>?Type
HyperMesh Tcl Modify Command
Description
Detect all feature types within the filter options and create feature entities.
Inputs
- hole2d_detection=<0/1>
- The detection of 2D holes.
- hole3d_detection=<0/1>
- The detection of 3D holes.
- fillet_detection=<0/1>
- The detection of fillets.
- flange2d_detection=<0/1>
- The detection of 2D flanges.
- logo_detection=<0/1>
- The detection of logos.
- surf_mark=<mark_id>
- The ID of the mark containing the surface entities (geometry input). Valid values are 1 and 2.
- elem_mark=<mark_id>
- The ID of the mark containing the elements (FE input). Valid values are 1 and 2. Not supported for features of type fillet and logo.
- hole2d_minradius=<value>
- The minimum radius of 2D holes to be detected as a feature.
- hole2d_maxradius=<value>
- The maximum radius of 2D holes to be detected as a feature.
- hole3d_stephole=<0/1>
- 0 - Each barrel is considered as an individual hole (default).
- hole3d_minradius=<value>
- The minimum radius of a 3D hole to be detected as a feature (default 0.01).
- hole3d_maxradius=<value>
- The maximum radius of a 3D hole to be detected as a feature (default 20.0).
- hole3d_maxdepth=<value>
- The maximum length of a 3D hole to be detected as a feature.
- fillet_minradius=<value>
- The minimum radius a fillet to be detected as a feature.
- fillet_maxradius=<value>
- The maximum radius of a fillet to be detected as a feature.
- flange2d_maxwidth=<value>
- The maximum width of a 2D flange to be detected as a feature.
- logo_maxwidth=<value>
- The maximum width of a logo to be detected as a feature.
- logo_maxheight=<value>
- The maximum height of the logo to be detected as a feature.
- logo_concavityfactor=<value>
- The concavity factor value to be considered during logo detection (default 1.0).
Examples
To detect 2D holes with minimum radius of 0.02 and maximum radius of
20.0:
*createmark surfs 1 all
*detectandcreatefeatures holes2d=true surf_mark=1 elem_mark=2 hole2d_minrad=0.02 hole2_maxrad=20.0
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.1
2022.1 - The mark argument has been replaced with new arguments elem_mark and surf_mark.