TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: V-Man on September 13, 2013, 11:08:09 AM
-
In need of simple code to check the existence of any XREF's in current drawing and if any found LOCK the layer they are inserted on.
Thanks,
-
Try this quick draft:
(defun c:lxr
( / a b e i l s x
) )
)
)
)
)
)
)
)
-
Maybe REGEN would be needed after locking layers.
-
Lee Mac
Thank you sir for your generous support. That procedure worked perfectly.
-
Thank you sir for your generous support. That procedure worked perfectly.
You're very welcome V-Man :-)
-
In need of simple code to check the existence of any XREF's in current drawing and if any found LOCK the layer they are inserted on.
Thanks,
Instead of locking whatever layer they are inserted on, why wouldn't you want to put your xrefs on an appropriate layer and then lock it?
Such as G-ANNO-REFR (or what ever your desired standard is)?
Just a thought.
That way if someone put an xref on the wrong layer such as a text layer, you're not locking that one.
-
I agree Ted. One option is to name the layer to match the xref name ... 'standards' allowing :-)