I've delayed to not overload posting but.. really would appreciate
mod/add to get the new region more visible temporarily. My guess
is: errors connected to the boundary command which isn't done..
One attempted is flipping to flat shade, then back, but the color isn't
a contrast making it not visible itself. Can it work with temporary
object selection or color swap somehow?
Suggestions really appreciated!
Corrected and much more usable!
(defun c:r1
(/ hpb
-1 sel
) (princ "\n Boundary of Intersecting ~ Island Regions..") (setq hpb
-1 (getvar 'hpbound
)) ; save boundary format.. (setvar 'hpbound
0) ; format boundary to create region (setq sel
(ssget '
((0 .
"REGION")))) ; get region selection + setq (vl-cmdf "copy" sel
"" "0,0,0" "0,0,0") ; make a copy of to use (vl-cmdf "intersect" sel
"") ; make the intersecting region (setvar 'hpbound hpb
-1) ; restore boundary format.. (vl-cmdf "_.change" "_P" "" "_P" "C" 6 "") ; change "L" color to 6/magenta temp.. (vl-cmdf "_.change" "_P" "" "_P" "C" "bylayer" "") ; revert to bylayer (command "draworder" "_P" "" "F") ; move new region to top (vl-cmdf "Move" "P" "") ; option to move the new region (princ " Move or Cancel") ) ;_ end of defun
EDIT (John): Added code tags.