std-entmake-pline | ![]() |
(std-entmake-pline <elist> <pts-or-segs>)
(std-entmake-polyline <elist> <segs>)
(std-entmake-lwpolyline <elist> <segs>)
(std-entmake-pface <elist> <pts> <faces>) ; one-based
(std-entmake-3dpoly <elist> <pts>)
(std-entmake-seqend <layer>)
It defines an easy to use ENTMAKE framework with defaults and simplifies the creation of textrows and complex entities. It can be basis for COMMAND independent fast creation functions.
It uses a template function for every entity type which knows useful default values and all required entity groups to succesfully create entities with ENTMAKE.
It also assures that all groups are passed to entmake in the required order. This makes ENTMAKE fairly portable, automatically adding or removing required groups and rearranging a wrong order of groups.
Creates a 2D polyline definition, POLYLINE or LWPOLYLINE.
If the group 0 is given this object is created, otherwise the acad default object determined by the state of the AutoCAD system variable PLINETYPE.
If segs is a pointlist instead of a segmentlist the pointlist is converted to a segmentlist.
The points are considered in WCS. The elevation is either retrieved from the group 38 in elist or from the z value of the first point. All other z values are ignored.
<elist> may contain any valid global property, such as the layer info or closed flag. Required is no <elist> information at all. Invalid properties are filtered out. Default properties are added.
Creates a 2D polyline definition, POLYLINE. Similar to STD-ENTMAKE-PLINE
.
If <segs> is a pointlist instead of a segmentlist the pointlist is converted to a segmentlist.
Creates a 2D polyline definition, LWPOLYLINE. Similar to STD-ENTMAKE-PLINE
.
If segs is a pointlist instead of a segmentlist the pointlist is converted to a segmentlist.
Creates a polyface mesh, PFACE.
[New with v0.5:] The face indices are one based, same as in the PFACE command, to be able to supply an invisible (=negative) first edge (-0 is the same +0).
For backwards compatibility only. Face indices are zero-based, so it is impossible to provide an invisible edge fro the first vertex (0 == -0)
Creates a 3D polyline definition, 3DPOLY. Similar to STD-ENTMAKE-PLINE
.
No segment list allowed.
<elist> may contain any valid global property, such as the layer info, or closed flag. Required is no elist information at all. Invalid properties are filtered out. Default properties are added. Points are automatically converted to 3D.
<layer> may be nil or the layername.
Just aesthetics. Closes a complex entity definition (polyline with vertices, block with attributes).
elst: a partial entitylist as returned by entget. Just the required groups must be present.
pts-or-segs: a list of points or list of segments as returned by STD-PLINE-SEGS
. See Segments, Bulges
faces: a list of list of 3-4 integer numbers.
The return value of the actual (last) ENTMAKE
call.
Creates AutoCAD entities.
(std-require 'ENTMAKE)
#- SMALL
Defined in ENTMAKE