*appendmark

Appends entities on a mark based on user supplied options.

Syntax

*appendmark entity_type mark_id ?"by model" <model_name>? ?"option"? list

Type

HyperMesh Tcl Modify Command

Description

Appends entities on a mark based on user supplied options.

In addition to the options below, all of the options for *createmark are also supported. See that topic for more details on those options, and general behaviors of both commands.

Inputs

entity_type
Entity type to use. Depending on the options specified, the supported entity types will change.
mark_id
The ID of the mark. Valid values are 1 and 2.
"by model" <model_name>
The optional model to append the mark from. If not specified, the current model is used.
?"options"?

Supported Options

"by adjacent"
Starting with entities already on the mark, find entities adjacent to them. The search is performed once.
"by attached"
Starting with entities already on the mark, find entities adjacent to them. This search is repeated until all adjacent entities are found.
"by face"
Starting with entities already on the mark, find entities on the same face.
For elements and nodes, the current feature angle (from the options panel) is used. In addition, any displayed plot elements are considered boundaries for finding by face.
For surfaces, the connectivity of the geometry is used.
"by face across t junctions"
Starting with entities already on the mark, find entities on the same face, including those across t-junctions.
For elements and nodes, the current feature angle (from the options panel) is used.
For surfaces, the connectivity of the geometry is used.
"by opposite"
Starting with surfaces already on the mark, find entities on the opposite side of thin solids.

Examples

To delete the elements adjacent to the elements in components with names FRONT and SIDE:
*createmark elems 1 "by comp name" FRONT SIDE
*createmark elems 2 "[hm_getmark elems 1]"
*appendmark elems 1 "by adjacent"
*markdifference elems 1 elems 2
*deletemark elems 1
To translate all of the elements attached to element 40404 by (5,0,0):
*createmark elems 1 40404
*appendmark elems 1 "by attached"
*createvector 1 1.0 0.0 0.0
*translatemark elements 1 1 5
To mark elements that share a face with elements 50 and 100:
*createmark elems 1 50 100
*appendmark elems 1 "by face"
To mark elements that share a face with elements 50 and 100 for model model-2:
*createmark elems 1 "by model" model-2 50 100
*appendmark elems 1 "by model" model-2 "by face"

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

2017.1 - Added new "by topology" method.

2020 - Added new methods "by list", "by list id", "by list name" and "by opposite". Added new option "by model".

2020.1 - Added new methods "by subsystem", "by subsystem id" and "by subsystem name".