(The following is in INV 2011)
I am having an issue with the Level of Detail representation of a drawing / assembly file that I’ve been working on. Naturally I’ve set up a custom LoD (named Lenny for the purpose of this question), but at times my assembly goes back to Master LoD.
I have my Application options set up to open the last known LoD, and that works so long as I’m only opening one file at a time. The problem starts to happen I have both the Assembly and the Drawing file (that the Assembly is being represented on) open and I save the Drawing file last before closing out. Any time (after saving the drawing file last) that I open the Assembly file; it will automatically be set back to Master LoD.
Being that I’m still getting my chops with this program, I’m curious if this is the normal behavior of things. I assume that because it separates the drawing from the assembly documents (in Classes that is) when I save that drawing last, it sets the LoD last active name which will not work for the assembly due to the class difference.
Is there a solution around this problem, or does anyone knows of a way to sort of easily set the LoD using a Vb rule?
1 million Thanks to you!
Thank you, I got it working and it is unbelivibly fast compared to LoD.
I was expecting to have to set the BoM filter on to the view representation but this seems to not require it? It also looks like the name of the view representation does not matter.
I have a lot of code to supress/unsupress constraints which thankfully is outside of LoD, has this method given you any troubles?
Thank you very much for this, I will implement this in some real work scenerios and see how it goes. I wish I knew this upfront as we've made it pretty far with LoDs, but this seems like the more elegent solution by far.
I'm guessing only the visability commands need to be in the Sub Main() with the constrains residing outside?
Also if I'm controlling visability from an assembly, within a subassembly do I need to repeat the code at both levels?
Arek