*morphcreatedomaindc

Creates a domain from the elements on the mark with various options.

Syntax

*morphcreatedomaindc elemtype elemmark type part rethand bydom bycomp

Type

HyperMesh Tcl Modify Command

Description

Creates a domain from the elements on the mark with various options.

Inputs

elemtype
ELEMS
elemmark
Element mark number
type
-1 - Autoupdate
1 - 1D domain
2 - 2D domain
3 - 3D domain
6 - Local domains (1D, 2D, and 3D)
7 - General domain
part
0 - Do not use partitioning
1 - Partition all domains
2 - Only partition elements on solid domains (only for type = 6)
rethand
0 - Do not retain handles
1 - Retain handles
bydom
0 - Do not divide selected elements by existing domain
1 - Divide elements by existing domains
bycomp
0 - Do not divide selected elements by components
1 - Divide selected elements by components

Example

*morphcreatedomaindc ELEMS 1 2 1 1 0 0 

A new domain is created from the elements on the mark. The type specified notes which elements in the mark will be retained. If no elements of the correct type are on the mark, the command will exit. Elements from existing domains may be placed on the mark and will be removed from their former domain and placed in the new domain.

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}