std-entmake-text | ![]() |
(std-entmake-style <name> <font> <height> <more>)
(std-entmake-block <elist>)
(std-entmake-attdef <elist>)
(std-entmake-insert <elist>)
(std-entmake-attrib <elist>)
(std-entmake-text <elist>)
(std-entmake-mtext <elist>)
(std-entmake-leader <elist>)
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 text style definition.
(70 . 0)
; 4 vertical
(40 . 1.0)
; height
(41 . 1.0)
; width
(50 . 0.0)
; oblique angle
(71 . 0)
; 2 backwards, 4 upside down
(42 . 1.0)
; last height used (?)
(3 . "txt")
; font file name
(4 . "")
; bigfont file name
((0 . "BLOCK")(70 . 0)(10 . (0 0 0)))
required: group 2: blockname
Creates a attribute definition with the following defaults and required entity groups:
defaults: ((0 . "ATTDEF")(10 . (0 0 0))(40 (getvar "TEXTSIZE"))
(8 . "0") (1 . "")(3 . "")(7 (getvar "TEXTSTYLE"))
(2 . "")(70 . 0))
required: group 2: attribute name
Closes a block definition.
Creates a block entity with the following defaults and required entity groups:
defaults: ((0 . "BLOCK")(70 . 0)(66 . 0)(10 . (0 0 0)))
required: group 2: blockname
It stores the last insertion point for the appropriate STD-ENTMAKE
calls for ATTRIB, TEXT and MTEXT.
Creates a attribute entity with the following defaults and required entity groups:
defaults: ((0 . "ATTRIB")(10 . *last-insertion-point*)
(40 (getvar "TEXTSIZE"))
(1 . "")(2 . "")(7 (getvar "TEXTSTYLE"))(70 . 0))
required: group 2: attribute name
If no group 10 is given a default point is used which is either (0 0 0)
or 1.25 * (GETVAR "TEXTSIZE")
below the value of the last insertion point. It stores the last insertion point for the appropriate STD-ENTMAKE
calls for ATTRIB, TEXT and MTEXT.
<layer> may be nil or the layername.
Just aesthetics. Closes a complex entity definition (polyline with vertices, block with attributes).
Creates a text entity with the following defaults and required entity groups:
default: ((0 . "TEXT")(10 . (0 0 0))(40 . (getvar "TEXTSIZE"))
(7 . (getvar "TEXTSTYLE"))(1 . ""))
required: group 2: textvalue
If no group 10 is given a default point is used which is either (0 0 0) or 1.25 * (GETVAR "TEXTSIZE") below the value of the last insertion point. It stores the last insertion point for the appropriate STD-ENTMAKE- calls for ATTRIB, TEXT and MTEXT.
Creates a mtext entity with the following defaults and required entity groups:
default: ((0 . "MTEXT")(10 . (0 0 0))(40 . (getvar "TEXTSIZE"))
(7 . (getvar "TEXTSTYLE"))(1 . ""))
required: group 2: textvalue
If no group 10 is given a default point is used which is either (0 0 0)
or 1.25 * (GETVAR "TEXTSIZE")
below the value of the last insertion point. It stores the last insertion point for the appropriate STD-ENTMAKE-
calls for ATTRIB, TEXT and MTEXT.
Creates a leader entity without the connected MTEXT entity , using the following defaults and required entity groups:
default: ((0 . "LEADER"))
required: at least two group 10 points for the endpoint of the arrow and the next vertices.
elst: a partial entitylist as returned by entget. Just the required groups must be present.
The return value of the actual (last) ENTMAKE
call.
Creates AutoCAD entities.
With successive text/attrib entities it advances the text insertion point to the next line, by TEXTSIZE * 1.25
. This point is stored in the variable *LAST-INSERTION-POINT*.
STD-ENTMAKE-INSERT
always sets a new *LAST-INSERTION-POINT*.
This is used to simplify the creation of succesive text or attribute rows.
(std-require 'ENTMAKE)
#- SMALL
Defined in ENTMAKE