Hey everybody, new user, first post here.
Is there anyway to select a single object in an XREF, without selecting the entire XREF?
In this case, this is specifically to use the zoom to object command, not to edit anything.
Printable View
Hey everybody, new user, first post here.
Is there anyway to select a single object in an XREF, without selecting the entire XREF?
In this case, this is specifically to use the zoom to object command, not to edit anything.
I have not tested it, but thinking out loud, I'm thinking you could use something like this to grab the nested entity:
(setq x (car (nentsel "\nSelect an object ")))
Then find the bounding box for that object and zoom to those coordinates.
Thanks for the recommendation. That makes sense and looks like it would work. I’ve never written a lisp, guess its time to figure that out. I’ve been putting it off too long...
I’ll see what I can come up with.
@zebchamlee -- here is a quick and dirty version. No error checking included.
Code:(defun c:foo ( / x obj minP maxP)
(setq x (car (nentsel "\nSelect an object ")))
(setq obj (vlax-ename->vla-object x))
(vla-GetBoundingBox obj 'minP 'maxP)
(command "._zoom" "_W"
(vlax-safearray->list minP)
(vlax-safearray->list maxP)
)
)
Either select the block ==> right click ==> Block-Editor ... and do your modifications in that space ... or
run command _EXPLODE to make all objects within the block to separate objects.
just what does that have to do with the original question?????