Hi group
if i have a load of parts in an assembly set so visibility is of, is there a way to group select all hidden parts so they van be made visible again as a group rather than looking through the assembly for them?
regards adrian
Solved! Go to Solution.
Solved by coreyparks. Go to Solution.
Hi Thats' ok if you think about it before you do it! 8-)
the problem there is when designing stuff and a design is evolving it could get a bit complicated and long winded setting design view representations each time. I am always turning different bits on and off to get in to a desgn whilst working on different areas.
isolate and un-isolate work well, but isolate is not the best way to go somtimes.
is there no basic commands like select hidden parts ?
regards Adrian
Hi thanks for your reply and input, design views do work but i was hoping to find a selection type of command to just select hidden parts. it would work out easier in a lot of cases?
regards Adrian
Hi safiredesignengineers,
Here is some iLogic code that looks for all components with visibility turned off from the top level assembly. It looks at only in the top level assembly and second level assembly, and then toggles their visibility back on. It does not modify the visibility states of the components in subassemblies, but merely toggles visibility on at the top level.
I had this code on hand as part of another rule for setting view reps so you might find some areas where it doesn't work, but maybe PACDrafting or someone can come up with something more sophisticated if you identify situations where this doesn't work.
I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com
' set a reference to the assembly component definition. ' This assumes an assembly document is open. Dim oAsmCompDef As AssemblyComponentDefinition oAsmCompDef = ThisApplication.ActiveDocument.ComponentDefinition 'define current document Dim openDoc As Document openDoc = ThisDoc.Document 'kAssemblyDocumentObject = 12291 If openDoc.DocumentType = 12291 Then 'look at all of the components in the assembly Dim oCompDef As Inventor.ComponentDefinition = openDoc.ComponentDefinition 'define the first level components collection Dim oCompOcc As Inventor.ComponentOccurrence 'define the next level components collection Dim oSubCompOcc As Inventor.ComponentOccurrence 'Turn on the visibility of components in the top level assembly For each oCompOcc in oCompDef.Occurrences If oCompOcc.Visible = Flase Then 'Turn the visibility on oCompOcc.Visible = True End If 'Turn on the visibility of components in the second level assemblies For Each oSubCompOcc In oCompOcc.SubOccurrences 'select for part files with specified material If oSubCompOcc.Visible = False Then 'Turn the visibility off oSubCompOcc.Visible = True End If Next Next Else MessageBox.Show("You must have a valid Assembly document open before using this code!", "File Type Mismatch!") End If
Thanks for your replies, I prefer not to use custom coding as it can cause issues when upgrading software or with multiple users etc.. We have issues like this with our database software!
I will have a play with the design view reps more to see if I can put up with it in these situations, however it would be a nice selection function in later versions of inventor, hopfully 8-)
OK. This is how you can find visible or non visible occurrences.
How is this for you?
Hi PACdrafting
Thanks for all your efforts, This works. However (and I don't intend to be negative or grumpy) but I just tried this and I have to wait for the search to complete which was not too long for occasional use, but when in a design and flicking back and forth to do stuff this is not practical.
It needs a simple select function that has the ability to select hidden items in an instant.
I have been playing with isolate which is OK ish at the moment but still a few to many clicks of a mouse to be effective.
I select items to be hidden - invert selection - isolate - do the design changes - then unisolate all.
Again thanks for your efforts, you have made me look at the binoculars in a bit of detail which is great as I have not used this feature before.
Regards Adrian
I am assuming that since you are looking for all invisible parts that you want to make all the parts in your assembly visible right? Simple right click on the design view rep that is current in the browser and select "all visible".
Hi coreyparks,
Well sure that works if you want to do things the easy way!
I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com
Yeah well I have been called lazy on occasion and I won't deny it. Of course lazy people are awsome since they always look for the quickest and easiest way to do things. And yes, I did just call myself awsome.
F me. What a mission that was.
Problem being, my original post said design view reps needed setting up.
Hi PACDrafting
your right what a mission! but this is often the case with inventor what should be simple and apears to not be somtimes is but you got to find the way!
regards Adrian
No problems.
Like everything in life. The more time you spend on it the better you get.