As an imitation of the Rectang command in 2010. (defun c:arec ( / an ar p1 x ) (if (and (setq p1 (getpoint ' nSpecify first corner point: ')) (progn (initget 6) (setq ar (getreal ' nSpecify Area for Rectangle: ')) ) (progn (initget 'Length Width') (setq an (getkword ' nCalculate rectangle dimensions based on [Length/Width]: ')) (if (eq 'Width' an) (setq x (getdist ' nSpecify rectangle width: ' p1)) (setq x (getdist ' nSpecify rectangle length: 'p1)) ) ) ) (command '_.rectang' '_non' p1 '_non' (polar (polar p1 (if (eq 'Width' an) 0. Les manipulateurs sont parmi nous ebook gratuit forum. (/ pi 2.)) x) (if (eq 'Width' an) (/ pi 2.) 0.) (/ ar x) ) ) ) (princ) ). (defun c:arec ( / an ar p1 x ) (if (and (setq p1 (getpoint ' nSpecify first corner point: ')) (progn (initget 6) (setq ar (getreal ' nSpecify Area for Rectangle: ')) ) (progn (initget 'Length Width') (setq an (getkword ' nCalculate rectangle dimensions based on [Length/Width]: ')) (if (eq 'Width' an) (setq x (getdist ' nSpecify rectangle width: ' p1)) (setq x (getdist ' nSpecify rectangle length: 'p1)) ) ) ) (command '_.rectang' '_non' p1 '_non' (polar (polar p1 (if (eq 'Width' an) 0. (/ pi 2.)) (* x 12.)) (if (eq 'Width' an) (/ pi 2.) 0.) (* 12.

Autocad Lisp For Area

Area selection may be accomplished in two ways: by picking bounded regions, or by selecting closed objects. Following the selection of an area, a label is placed in the centre of the selected area and a new row is added to the AutoCAD Table, displaying both the label and measurement of the selected area.

(/ ar x)) ) ) ) (princ) ).

Popular Posts