Author Topic: DXF group code of block  (Read 3124 times)

0 Members and 1 Guest are viewing this topic.

Andrea

  • Water Moccasin
  • Posts: 2372
DXF group code of block
« 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.
Keep smile...

daron

  • Guest
DXF group code of block
« Reply #1 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)

Andrea

  • Water Moccasin
  • Posts: 2372
DXF group code of block
« Reply #2 on: August 01, 2004, 10:45:29 PM »
thanks Daron..
it work !

 :wink:
Keep smile...

John Kaul (Se7en)

  • Administrator
  • Needs a day job
  • Posts: 9718
DXF group code of block
« Reply #3 on: August 01, 2004, 11:39:49 PM »
Yep, another lisp question.

*Bump!*
TheSwamp.org (serving the CAD community since 2003)

Donate to TheSwamp.org