*body_trim_with_templine
Trim selected solids or surfaces by sweeping line constructed from input coordinates in input direction.
Syntax
*body_trim_with_templine entity_type mark_id vector_id coords size options
Type
HyperMesh Tcl Modify
Description
This command uses coordinates specified by coords and size parameters to construct temporary line. Depending on “mode” setting in options parameter the line can be either smooth spline or a set of straight segments connecting points. The line is then used to construct cutting surface, which is then used to trim selected solids or surfaces. Depending on options parameter setting, the cutting surface itself either becomes part of the model or used only to produce trimming lines on surfaces it intersects. One more setting in options parameter controls whether the surface is generated exactly as specified by input vector and coordinates or it is also analytically extended to intersect as many surfaces from the input set as possible.
Inputs
- entity_type
- The type of entity selected for trimming. Surfaces and solids are supported.
- mark_id
- The mark of surfaces or solids selected for trimming.
- vector_id
- The ID of the vector defining the sweeping direction for generating the cutting surface using the temporary line, defined using the *createvector command. This must be set to 1.
- coords
- The ID of array of “double” type values specifying x, y, and z values of consecutive points used to generate temporary line.
- size
- Number of values in the array specified by coords.
- options
- The options to use for trimming the selected entities. Bit values are used and the
value is calculated as (Bit0 + 2*Bit1 + 4*Bit2 + 8*Bit3).
- Bit0
- 0 – Trimming surface is created by connecting input points and sweeping obtained line in input direction.
- Bit1
- 0 – Line is generated as a smooth spline through input points.
- Bit2
- 0 – Trimming surface becomes part of the model.
- Bit3
- 0 – Trimming surface becomes part of the model.
- Bit4
- 0 – Do not close open trimming line loop.
Examples
*createmark solids 1 111
*createvector 1 0 0 1
*createdoublearray 9 0 0.5 11 2 0.5 12 3 0.7 13
*body_trim_with_templine solids 1 1 1 9 0
*createmark solids 1 111
*createvector 1 0 0 1
*createdoublearray 9 0 0.5 11 2 0.5 12 3 0.7 13
*body_trim_with_templine solids 1 1 1 9 1
Errors
if { [ catch {command_name...} ] } {
# Handle error
}