lstr#
- Lines.lstr(p1='', p2='', **kwargs)#
Defines a straight line irrespective of the active coordinate system.
Mechanical APDL Command: LSTR
- Parameters:
- Returns:
intLine number of the generated line.
Notes
Defines a straight line from
P1toP2using the global Cartesian coordinate system. The active coordinate system will be ignored. The line shape is invariant with the coordinate system after it is generated. Lines may be redefined only if not yet attached to an area.Examples
Create a cartesian straight line regardless of the coordinate system being in cylindrical.
>>> mapdl.csys(1) >>> k0 = mapdl.k("", 0, 0, 0) >>> k1 = mapdl.k("", 1, 1, 1) >>> lnum = mapdl.lstr(k0, k1) >>> lnum 1