Suppress different drawing views in a for loop?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, I am working on a configurator that has various parts that will be optional. I have the model working fine but now I am trying to figure out how to deal with the drawing package (im still pretty new to this). My plan was to have every part dimensioned and turn off the ones that are not included. For example, there is a leg kit option, LEG_KIT_12IN & LEG_KIT_6IN. The leg kits are 2 piece, there is a wrapper and base. On the piece part drawing I will just have one page for leg kit base and one page for leg kit wrapper. Each page will have both sets of drawings and then I can just make a simple conditional statement to turn one off.
The issue I am running into is that from my understanding is that I can only use
ActiveSheet.View("VIEW74").View.Suppressed = True '6 IN LK BASE
when the individual page is active, and I am going to have multiple pages. And you cannot turn individual pages off at all. So I would need to run a for loop to activate the pages and then make my conditional statements to suppress views. Can I run different rules for each loop as it moves through the pages? Or would it be better just to include all the rules in every loop and make it skip over errors once it doesnt find specific views on that page? Or should I be going about this in a different way. Any help would be greatly appreciated. Thank you
-all on (for example)
- one on (for example)