This is one of those annoying features (or lack of) that make inventor look like a toy CAD program. I have expereinced the same issue. All I can suggest is you start using ProEngineer wherer this problem is solved by clicking one icon. Thats is - simple! One click! No complicated scripting or fancy footwork. One click - all planes are shown, one click all planes are not shown. Easy....are you listening to me autodesk!!!!!!!
You can actually turn them all off, work planes, axes, work points, sketches the whole kit and kabutal with one click of the menu selection unter view menu left hand side top. It took me a while to find it too. Very disappoint at first, but then I came to realize there are subtle ways of achiving the same things I used to do in other CAD programs. I'm at home so I can't relay the exact steps for you, but am willing to do so tomorrow while I'm at work and I have the screen in front of me. It so easy you'll be surprised.
New API functionality has been exposed since I last commented in this thread. The solution before was setting the visibility of the work features or sketches to be invisible. This is the same as right-clicking on the object in the browser and specifying it's visibility state. This is a property of the work feature or sketch and is saved. This isn't always what you want and is different from what the Object Visibility command does, which I think is probably what most people want in this case. Especially in an assembly where you want to change the visibility of what you're seeing without dirtying all of the referenced documents.
The PartDocument and AssemblyDocument objects support the ObjectVisibility property which returns an ObjectVisibility object. This object has properties that provide the equivalent functionalty of the Object Visibility command. For example, the following VBA code will turn off all sketches and work features.
Public Sub TurnAllOff() ' Make sure a part of assembly is active. If ThisApplication.ActiveDocumentType = kAssemblyDocumentObject Or _ ThisApplication.ActiveDocumentType = kPartDocumentObject Then Dim doc As Document Set doc = ThisApplication.ActiveDocument Dim objVis As ObjectVisibility Set objVis = doc.ObjectVisibility objVis.AllWorkFeatures = False objVis.Sketches = False objVis.Sketches3D = False Else MsgBox "A part of assembly must be active." End If End Sub
Actually after running code, you can see the property [Visibility] is still ON. ObjectVisibility only changes the visibility (displaying) of an object temporarily. This is a consistent behavior to UI View tab >> ObjectVisibility panel. After you toogle Off for all workplanes, and create a new workplane, the previous visible workplanes will become visible again.
except changing the property Visibile of a workplane, I cannot think of other ways at this moment..
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.