*FE_geometry_clonefromCAD

Creates FE geometry identical to the selected CAD geometry.

Syntax

*FE_geometry_clonefromCAD entity_type mark_id ?<option1>=<value1>? ?<option2>=<value2>? ... ?<optionN>=<valueN>?

Type

HyperMesh Tcl Modify Command

Description

Creates FE geometry identical to the selected CAD geometry entities. Optionally, existing CAD geometry entities are converted to use geometry of mesh elements and corresponding CAD geometry is deleted.

Inputs

entity_type
The type of input geometry. Valid value are surfs, solids, and comps.
mark_id
The ID of the mark containing the input geometry. Valid values are 1 and 2.
clone_mode=<value>
0 – Replacement mode. CAD geometry on existing entities is replaced by FE geometry. (default)
1 – Clone mode. FE geometry entities are created topologically identical to selected CAD geometry entities.
current_component=<value>
0 – FE geometry entities are created in components of original entities. (default)
1 – FE geometry entities are created in current component.
break_connectivity=<value>
0 – If elements associated to input surfaces are found to be connected to existing FE geometry, then the elements are added to those bodies with corresponding connectivity between old and new FE geometry entities. (default)
1 – Connectivity of elements associated to input surfaces to elements in existing FE geometry is broken.
stl_remesh=<value>
Specifies if selected surfaces that have an associated mesh are remeshed with STL or kept as-is.
0 – Do not remesh any meshed surfaces (default)
1 – Remesh with STL for all surfaces
stl_order=<value>
Specifies the STL order.
1 - First order (default)
2 - Second order
stl_resolution=<value>
The STL resolution when generating STL.
coarse – Coarse resolution
normal – Normal resolution (default)
fine – Fine resolution
user – User defined resolution. See stl_angle, stl_deviation, stl_max_size, and stl_min_size.
stl_trias_only=<value>
Specifies if only trias are used for STL.
0 - Not restricted to trias
1 - Restricted to trias (default)
stl_unmeshed=<value>
Specifies if selected surfaces that are unmeshed are meshed with STL or discarded.
0 – Do not mesh any unmeshed surfaces
1 – Create STL for unmeshed surfaces (default)
stl_angle=<value>
The maximum angle between created STL mesh elements. Mandatory if stl_resolution is set to user.
stl_deviation=<value>
The maximum deviation of created STL mesh elements from the original surface geometry. Optional if stl_resolution is set to user. If specified, stl_min_size must be also defined.
stl_max_size=<value>
The maximum size for created STL mesh elements. Mandatory if stl_resolution is set to user.
stl_min_size=<value>
The minimum size for created STL mesh elements. Optional if stl_resolution is set to user, mandatory if stl_resolution is specified.

Examples

To replace CAD geometry by FE geometry for all displayed surfaces using default values:
*createmark surfs 1 displayed
*FE_geometry_clonefromCAD surfs 1

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

2022