lextnd#

Lines.lextnd(nl1='', nk1='', dist='', keep='', **kwargs)#

Extends a line at one end by using its slope.

Mechanical APDL Command: LEXTND

Parameters:
nl1str

Number of the line to be extended. If NL1 = P, graphical picking is enabled and all remaining command fields are ignored (valid only in the GUI).

nk1str

Number of keypoint at the end of line NL1 to be extended.

diststr

Distance that the line will be extended.

keepint or str

Specifies whether to keep the input entities:

  • 0 - Modify old line to use new keypoints and slopes.

  • 1 - Do not modify old line. New line will overlay old line and have unique keypoints.

Returns:
int

Line number of the generated line.

Notes

Extends a line at one end by using its slope. Lines may be redefined only if not yet attached to an area. Line divisions are set to zero (use lesize, etc. to modify). Note that solid modeling in a toroidal coordinate system is not recommended.

Examples

Create a circular arc and extend it at one of its keypoints

>>> k0 = mapdl.k("", 0, 0, 0)
>>> k1 = mapdl.k("", 0, 0, 1)
>>> carcs = mapdl.circle(k0, 1, k1, arc=90)
>>> lnum = mapdl.lextnd(carcs[0], 3, 1)
>>> lnum
1