*set_midsurface_z_offset

Sets the z-offset value assigned to a midsurface.

Syntax

*set_midsurface_z_offset mark_id z_offset reserved

Type

HyperMesh Tcl Modify Command

Description

This command sets the z-offset value assigned to a midsurface. The thickness assigned to a midsurface interprets the z-offset value according to three possible thickness origins:
  • Centered midsurface - When the thickness is assigned to the midsurface positioned in the middle between the plate sides.
  • Midsurface with base z-offset - When the thickness is assigned to the midsurface which is shifted from the center to accommodate steps or a base surface.
  • Midsurface side - When the thickness is assigned to the sides of the plate during the midsurface extraction.

Currently, this command will set the thickness origin to be "Centered midsurface". However, if this command is used to set a constant z-offset value on a variable thickness surface, it is no longer possible to position the variable thickness correctly. Therefore, this command should only be used for constant thickness surfaces.

Inputs

mark_id
The ID of the mark containing the surfaces to update. Valid values are 1 and 2.
z_offset
The constant z-offset value to assign to the surfaces.
reserved
Reserved for future use. Must be set to 0.

Example

To set the z-offset value of surfaces 1-4 to 0.25:

*createmark surfs 1 1-4
*set_midsurface_z_offset 1 0.25 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

10-SA1-120