- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
A few weeks ago I set up an external rule that simply ensure all objects in an assembly are set to visible all the same as what the 'All Visible' button in Representations does but able to be thrown on toolbar for quicker access.
While it makes everything visible just fine, the browser doesnt update to recognize that the parts are in fact set to visible leading to weird issues such as showing the bounding box of the object and sometimes making for weird interactions with constraints or movement.
Right clicking the objects and clicking the visible button will toggle the checkbox and browser to 'on' and clear these issues for that specific part, but it shouldnt be doing this to begin with.
Figure: The clearly visible door subassembly has a bounding box in viewport and is listed as invisible by the browser...
I have tried forcing updates, global updates, Rebuild All, refreshing the component itself, all kinds of things. Whatever the visibility flag targeted by the Ilogic rule is, it must be separate from the one the browser populates from.
^ Iproperties 'Occurrence tab, Visibility flag not checked despite again, door being visible
Dim oDoc As Document
Dim Occ As ComponentOccurrence
Dim comp As ComponentOccurrencesEnumerator
Dim invApp As Inventor.Application
invApp = ThisApplication
oDoc = ThisDoc.Document 'local variable to shorthand to current document
comp =oDoc.ComponentDefinition.Occurrences.AllleafOccurrences '"AllLeafOccurrences" make rule read the lowest level components making hidden parts within subassemblies visible (unclear of top-level equivalent)
For Each Occ In comp 'Applies following to all components encompased
Occ.Visible = True 'Sets visible boolean to True
Next
note: no file attached as bug seems to work in any assembly
Solved! Go to Solution.