AutoCAD 2002 Bible

Скачать в pdf «AutoCAD 2002 Bible»


AutoLISP responds with:


((-1 . <Entity name: 15ac558>) (0 . «LINE») (330 . <Entity name: 15ac4f8>)(5 . «2B») (100 . «AcDbEntity») (67 . 0)


(410 . «Model») (8 . «0»)(100 . «AcDbLine») (10 3.0 3.0 0.0)


(11 5.0 5.0 0.0) (210 0.0 0.0 1.0))


This is a representation of how the line is stored in the AutoCAD drawing database. AutoLISP returned one large list that contains 12 smaller lists. Each of the smaller lists is referred to as a group indexed by the first element. The entity name is in group -1. Each of the initial numbers in the small lists represents a different quality of the line. These numbers are called object group codes. The object group codes used most often are listed in Table 35-2.


Table 35-2

Commonly Used AutoCAD Object Group Codes


Group Code Description


-1


Entity name


0


Entity type


1


Text value


8


Layer


10


Start point (or center)


11


Endpoint (or alignment point)


38


Elevation


39


Thickness


40


Radius (or height of text)


62


Color


67


Paper space flag

Note As you can see from the 10,11, and 40 codes, the meaning of the group codes can change depending on the type of object it is used for.


You can also use Visual LISP to examine an AutoCAD object. Begin by selecting View О Browse Drawing Database О Browse Selection. At this point, Visual LISP will display a pickbox in your drawing so you can select an object.

Скачать в pdf «AutoCAD 2002 Bible»