
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
I currently work in a practice which works with individual dwg files as opposed to multitab layouts. We use scripts relating to sheet names to control layers for text on overlapping sheets. I am now faced with using a system using multitab layouts and therefor using viewport overrides to freeze layers of overlapping sheets. Problem is if we have 50-100 sheets that is a lot of manual work I was once able to avoid.
Currently the the script works on a generic naming convention and the use of wildcards to freeze the layers across different xrefs. For example: Sheet_01.scr freezes off all layers in all xrefs with the layer naming convention Sheet_xx and thaws layers with Sheet_01 so that objects only pertaining to sheet one are displayed.
What I need is a lisp which does the same but viewport freezes layers relating to a tab layout name. So in layout tab GA_31 it VP freezes all layers with Sheet_* in them and thaws layers with Sheet_31 in them. It would need to work generically for all existing layouts so if extra layouts are added later and the lisp run again it picks up the new tab and freezes/thaws the relevant layers in that tab. It also need to work across multiple viewports in these tabs.
I was thinking it wouldn't be too hard and was going to try searching myself and bluffing my way through it but couldn't find anything specific enough and am afraid I am a little out of my depth.
Would apprecite any help.
Solved! Go to Solution.