Skip to content

pytha.remove_grain_direction

fabian-flassig edited this page Aug 25, 2026 · 1 revision

Removes the grain direction from a plate.

pytha.remove_grain_direction(target)
Parameter Type Description
target element_handle or {...} A part or group handle (or a table of those), or a list of edge specifications

Return value

Type Description
number The number of edges the grain direction was removed from

Notes:

  • A part or group handle removes the grain direction from every grain edge of those parts, including the edge on the opposite face.
  • A direction edge that was created as a free line and carries no face is deleted; an edge of the part itself only loses the attribute and returns to the main pen of the part.
  • Edges without a grain direction are skipped, so the return value counts the edges that actually carried one.
  • The x axis of the part is not touched, use remove_x_axis_direction for that.
  • The function requires the Workshop license, test for it with check_license_workshop.

Example:

local n = pytha.remove_grain_direction(part)

Version Support:

Minimum PYTHA Version: V27

See also:

pytha, Workshop Functions, Edge Specification, set_grain_direction, remove_x_axis_direction

Clone this wiki locally