ade_dwgsetsetting

AutoCAD Map 3D AutoLISP

Up a level
ade_dwgsetsetting
 
 

Sets a drawing setting value.

(ade_dwgsetsetting dwg_id proplist)

Returns T if successful and the drawing is active, or nil.

dwg_id Drawing ID (real).
proplist List composed of a setting name and a value (string).
See Setting Names below.
Setting Names
Setting name Value
dwgname Drawing name (string); a full path name, such as c:\\drawings\\mydwg.dwg.
dwgdesc Drawing description (string)
t_scale Simple transform scale (real).
For example, 1.2 = 120%
t_rotate Simple transform rotation (real); rotation direction depends on the AutoCAD ANGDIR setting
t_xoffset Simple transform X offset (real)
t_yoffset Simple transform Y offset (real)
t_apply Flag value (integer). Values:
1 = apply all simple transformations defined for the given drawing
0 = do not apply transformations
saveback Save back coordinates, a sequence of corner points, in this order: lower left, lower right, upper right, upper left, separated by "."

The following code sample uses the "saveback" value of the proplist parameter—a sequence of corner points: lower left, lower right, upper right, upper left.

(setq dwg_id (car (ade_dslist)))
(ade_dwgsetsetting dwg_id 
    '(("dwgdesc" . "Sample Drawing Description"))) 
(ade_dwgsetsetting dwg_id 
    '(("saveback" . ((2.20286 4.99866)  
                              (20.4689 4.99866)  
                              (20.4689 12.3563)  
                              (2.20286 12.3563)) )) )