OMEGA-ThundeR Posted May 31, 2022 Posted May 31, 2022 Hi, I am making fine use of the <HideObjects> command to temporarily remove some things i don't need. I got an lisp for easy use of the commands (also to show objects again). For the first time in years i managed to not get it to work. Attached is a DWG where the block don't hide when i use the command. Any other objects do hide. Seems to be an issue with some layers being 'off'. When i do <LAYON> i can hide the object. Turning off some layer again it won't work [u]always[/u], in include example it does, but i got more objects (blocks) where it still doesn't work if i turn of some includes layers again. Any idea on why <HideObjects> doesn't work when some layers are in an 'off' state? Hideobjects.dwg Quote
Dana W Posted May 31, 2022 Posted May 31, 2022 The data on an off layer cannot be accessed by any commands other than layer commands. It may work if you do LAYUNISO OR LAYON, run your routine, and then LAYISO or LAYOFF again and run it again, but that is only because the routine is probably not initializing it's own data. Once you close AutoCad and re-open it, the layers will be off and your routine will have no data in its own little brain so you will be back to it not working. You could make special layers for the objects within blocks that you intend to hide which won't respond to layoff for the original layer, but that has a conundrum of its own. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.