Assembly level work feature visibility

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to get a rule working for setting the assembly level work feature visibility states on/off, this is not the same as the "Object Visibility" function in the view tab that I'm looking for, which just overrides any visibility states set in the browser.
I have a rule that sets the visibility states at part level, which works great, but if I set visibility for a work plane for instance in the top level assembly, the part level rule will not affect it, so as far as I can tell the assembly level visibility setting overrules the part level one (this is due to view rep?). I'm trying to modify the part level rule, and this is what I have so far;
SyntaxEditor Code Snippet
'catch and skip errors On Error Resume Next 'define the active assembly Dim oAssyDoc As AssemblyDocument oAssyDoc = ThisApplication.ActiveDocument 'Set as False to hide wfBoolean = False 'set workplane dimensions visibility For Each oWorkPlane In oAssyDoc.ComponentDefinition.WorkPlanes oWorkPlane.Visible = wfBoolean Next 'update the files InventorVb.DocumentUpdate()
This code however, does not do anything as far as I can tell, how do I make this work on the assembly level to hide/show work features?