TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: DEVITG on February 28, 2004, 10:21:16 AM

Title: USING POLARMODE
Post by: DEVITG on February 28, 2004, 10:21:16 AM
the Var
POLARMODE

Controls settings for polar and object snap tracking. The value is the sum of four bitcodes:

Polar angle measurements
0  Measure polar angles based on current UCS (absolute)
1  Measure polar angles from selected objects (relative)
 
If I set to 1 (relative)

How I can select by LISP, with out the user action, the last line I draw to be the selected object.?? :?:
Title: USING POLARMODE
Post by: Mark on February 28, 2004, 12:52:50 PM
Code: [Select]
(setq ent (entlast))

Quote

Returns the name of the last nondeleted main object (entity) in the drawing

The entlast function is frequently used to obtain the name of a new entity that has just been added with the command function. To be selected, the entity need not be on the screen or on a thawed layer.