TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Andrea on July 30, 2004, 12:03:51 AM

Title: DXF group code of block
Post by: Andrea on July 30, 2004, 12:03:51 AM
hi all i have something like this...

(vl-cmdf "_.-insert" "block1" p1 lenght "2" ang)
(setq piece1 (entlast))


now i need to have DXF code for piece1 to get the
insertion point and the scale of it.  X Y Z...

I did't see anything about that in the help !

please help.


thanks.
Title: DXF group code of block
Post by: daron on July 30, 2004, 08:30:28 AM
This should do it.

Quote
The following group codes apply to insert (block reference) entities. In addition to the group codes described here, see Common Group Codes for Entities . For information about abbreviations and formatting used in this table, see Formatting Conventions in This Reference .  Insert group codes  
Group codes Description
100 Subclass marker (AcDbBlockReference)  
66 Variable attributes-follow flag (optional; default = 0); if the value of attributes-follow flag is 1, a series of attribute entities is expected to follow the insert, terminated by a seqend entity
2 Block name
10 Insertion point (in OCS)
DXF: X value; APP: 3D point
20, 30 DXF: Y and Z values of insertion point (in OCS)  
41 X scale factor (optional; default = 1)
42 Y scale factor (optional; default = 1)
43 Z scale factor (optional; default = 1)
50 Rotation angle (optional; default = 0)
70 Column count (optional; default = 1)
71 Row count (optional; default = 1)
44 Column spacing (optional; default = 0)
45 Row spacing (optional; default = 0)
210 Extrusion direction (optional; default = 0, 0, 1)
DXF: X value; APP: 3D vector
220, 230 DXF: Y and Z values of extrusion direction (optional)
Title: DXF group code of block
Post by: Andrea on August 01, 2004, 10:45:29 PM
thanks Daron..
it work !

 :wink:
Title: DXF group code of block
Post by: JohnK on August 01, 2004, 11:39:49 PM
Yep, another lisp question.

*Bump!*