Message 1 of 12
Layfrz with object detection?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I see this topic has been discussed some time ago but AFAIK without a solution...
I use LAYFRZ alot, and like other users I am constantly needing to change the selection level between Block and Entity. Would it be possible to write a routine which detected the object being clicked (including blocks in xrefs... ), set the entity selection correctly in LAYFRZ and then applied the freeze?
Sadly this is way beyond my programming skills, but as a barter, I offer you a annotation-scale aware version of REVCLOUD... it works for me but I take no responsibility (reading it will reveal the level of my programming skill too...)
(defun c:cloud (/ *error* reply ans arcl osm ss obj) (if (= psarcl nil) (setq psarcl 5) ) (setq reply (getreal (strcat "Specify paperspace arc length required (Enter for " (rtos psarcl) "mm): " ) ) ) (if (/= reply nil) (setq psarcl reply) ) (setq arcl (/ psarcl (getvar "cannoscalevalue"))) (initget "N O") (setq ans (getkword "\nDraw New or select Objects [N/O] <O>: ")) (if (= ans "N") (command "revcloud" "a" arcl arcl pause) (progn (setq ss (ssget '((0 . "ELLIPSE,POLYLINE,LWPOLYLINE,CIRCLE,POLYGON")))) (repeat (setq i (sslength ss)) (setq obj (ssname ss (setq i (1- i)))) (command "revcloud" "a" arcl arcl "o" obj "n") ) ; end repeat ) ;end progn ) ;end if (princ) )