Hello everyone !

Can somebody to reveal the secret of DXF components ?

Defining a TextStyle :

Code:
(if (not (tblSearch "Style" "ArialT")) (vl-CmdF "-Style" "ArialT" "Arial.ttf" 0 1 0 "_N" "_N") )
1 . Why in the next code , (7 . "ArialT") is not having effect all the time ? In special , if it was defined befor , and after that , Purge all the drawing and redifine the TextStyle .

The code (280 . 1) it is working fine .

Code:
(entMake (list '(0 . "ATTRIB")
                '(100 . "AcDbEntity") '(8 . "Name L") '(67 . 0) ;'(6 . "ByLayer") ;'(62 . 256) '(67 . 0) ;0 = MSpace ;
                '(100 . "AcDbText") (list 10 i i i) '(40 . 1) (cons 1 (ItoA i)) '(50 . 0) '(41 . 1.0) '(51 . 0.0)  '(7 . "ArialT") '(71 . 0) '(72 . 0) (cons 11 i i i) ;'(210 0.0 0.0 1.0)
                '(100 . "AcDbAttribute") '(280 . 0) '(2 . "NAME") '(70 . 0) '(73 . 0) (cons 74 2) '(280 . 1) )  )
2 . All of this DXF (1 2 6 7 8 62 40 41 42 50 51 70 71 72 73 74 210 280 . . .) should be defined / inserted in a particular order ?

3 . The codes 100 are mandatory ?

3 . Why in the next code , (280 . 1) is not having any effect ? And (7 . "ArialT") is not creating any problem ?

Code:
(entMake (list '(0 . "ATTRIB") (list 10 i i i)  '(8 . "Name L") (cons 1 (ItoA i)) '(280 . 0) '(2 . "NAME") '(40 . 1) '(70 . 0)
             (cons 11 i i i) (cons 72 0) (cons 74 2) '(6 . "ByLayer") '(7 . "ArialT") '(50 . 0) '(62 . 5) '(280 . 1) )  ) ;
4 . Should be in an other location or precedet , accompanied by an other code ?

5 . In this link
HTML Code:
https://images.autodesk.com/adsk/files/autocad_2012_pdf_dxf-reference_enu.pdf
, at page 72 , can be seen Atttib parameters :

PHP Code:
ATTRIB

Attrib group codesGroup code Description

100 Subclass marker 
(AcDbText)
39 Thickness (optional; default = 0)
10 Text start point (in OCSDXFX valueAPP3D point
20
30 DXFand Z values of text start point (in OCS)40 Text height1 Default value (string)

100 Subclass marker (AcDbAttribute)
280 Version number20102 Attribute tag (stringcannot contain spaces)
70 Attribute flags:Attribute is invisible (does not appear)
This is a constant attribute4 Verification is required on input of this attribute8 Attribute is preset (no prompt during insertion)
73 Field length (optional; default = 0) (not currently used)
50 Text rotation (optional; default = 0)
41 Relative X scale factor (width) (optional; default = 1). This value is also adjusted when fit-typetext is used .
51 Oblique angle (optional; default = 0)
7 Text style name (optional; default = STANDARD)
71 Text generation flags (optional; default = 0). See TEXT on page 144 group codes
72 Horizontal text justification type 
(optional; default = 0). See TEXT on page 144 group codes
74 Vertical text justification type 
(optional; default = 0). See group code 73 in TEXT on page 144
11 Alignment point 
(in OCS) (optional)
DXFX valueAPP3D point Present only if 72 or 74 group is present and nonzero
21
31 DXFand Z values of alignment point (in OCS) (optional)
210 Extrusion directionPresent only if the entity's extrusion direction is not parallel to the WCS Z axis (optional; default = 0, 0, 1) DXF: X value; APP: 3D vector220, 230 DXF: Y and Z values of extrusion direction (optional)280 Lock position flag. Locks the position of the attribute within the block reference

100 Subclass marker (AcDbXrecord)
280 Duplicate record cloning flag (determines how to merge duplicate entries):
1 = Keep existing70 MText flag:2 = multiline attribute4 = constant multiline attribute definition70 isReallyLocked flag:0 = unlocked1 = locked
70 Number of secondary attributes or attribute definitions
340 Hard-pointer id of secondary attribute(s) or attribute definition(s)
10 Alignment point of attribute or attribute definition DXF: X value; APP: 3D point
20,30 DXF: Y and Z values of insertion point
40 current annotation scale
2 attribute or attribute definition tag string

0 Entity type (MTEXT)

100 Subclass marker (AcDbEntity)
67 Absent or zero indicates entity is in model space. 1 indicates entity is in paper space (optional)8 Layer name

100 Subclass marker (AcDbMText)
10 Insertion pointDXF: X value; APP: 3D point20,30 DXF: Y and Z values of insertion point
40 Nominal (initial) text height

... 
If I put all the next codes to AcDbAttribute : 10 40 50 7 51 71 72 11 , is not working .

Code:
(entMake (list '(0 . "ATTRIB")
                '(100 . "AcDbEntity") '(8 . "Name L") '(67 . 0) ;'(6 . "ByLayer") ;'(62 . 256) '(67 . 0) ;0 = MSpace ;
                '(100 . "AcDbText") (list 10 i i i) '(40 . 1) (cons 1 (ItoA i))
                '(100 . "AcDbAttribute") '(280 . 0) '(2 . "NAME") '(70 . 0) '(50 . 0) '(41 . 1.0) '(51 . 0.0)  '(7 . "ArialT") '(71 . 0) '(72 . 0) (cons 11 i i i) ;'(210 0.0 0.0 1.0)
                           '(73 . 0) (cons 74 2) '(280 . 1) )  )
All of this codes are working only for AcDbText . Why ? The book is wrong ?

Thanks in advance .