@alansanudo wrote:
What's the command how can i execute it? will it work to create multiple boundaries for different "areas" as the image attached?
Here's a way to do that. It asks you to pick points [just on-screen -- nothing drawn] defining opposite corners of a rectangular area that completely encloses the drawn [I assume property-line] parcels, and asks for a spacing increment, starts a BOUNDARY command, and just picks every point in a grid at that spacing throughout the area. If it picks outboard of it all, a message goes by that no enclosed area was found, and if it picks more than once within the same area, a message goes by that the area has already been picked, but in either case it doesn't bother anything -- it keeps going. Give it a spacing increment small enough that it's bound to land inside every parcel somewhere at least once, maybe a little less than the smallest parcel edge expected. You will want to turn off Layers other than those of your property lines, so that it won't find an enclosed area outside of them all. And it depends on all the parcels really being closed. Minimally tested.
(defun C:MBound ; = Multiple Boundaries
(/ cor1 cor2 UR rowleft pt)
(setq
cor1 (getpoint "\nOne corner of area-enclosing rectangle: ")
cor2 (getcorner cor1 "\nOpposite corner: ")
inc (getdist "\nPick-point spacing increment: ")
UR (mapcar 'max cor1 cor2)
rowleft (mapcar '+ (mapcar 'min cor1 cor2) (list inc inc))
pt rowleft
); setq
(command "_.boundary" "advanced" "object" "Polyline" "")
(while (< (cadr pt) (cadr UR)); still below top edge
(while (< (car pt) (car UR)); still to left of right edge
(command pt)
(setq pt (polar pt 0 inc))
); while
(setq
rowleft (polar rowleft (/ pi 2) inc)
pt rowleft
); setq
); while
(command "")
(princ)
); defun
Kent Cooper, AIA