Message 1 of 3
Exploiting the "Field Expression"

Not applicable
02-08-2006
11:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I wrote a routine that will allow you to select a closed Polyline or pick a point inside of a closed area, and then it will retrieve the area, convert it to Acres (if you want it to) and then insert a block with attributes and fill in the attribute that asks for the area with the area it got from the object you just selected.
(defun c:acres (/ pt ent a temp val val2)
(setq layerold (getvar "clayer"))
(setq ent nil)
(setq N nil)
(setq val (getstring "\nUnits in Acres or Square feet? (A/S): "))
(if (= val "") (setq val "a"))
(while (not ent)
(while (not N)
(setq ent (car...
(defun c:acres (/ pt ent a temp val val2)
(setq layerold (getvar "clayer"))
(setq ent nil)
(setq N nil)
(setq val (getstring "\nUnits in Acres or Square feet? (A/S): "))
(if (= val "") (setq val "a"))
(while (not ent)
(while (not N)
(setq ent (car...