Hide/show group of parts

Oct 25, 2004 5 Replies

Is there a way to select a group of parts in model space and hide the rest of the assembly. I am using 2004


No you can only select parts then hide those. If you want to hide other parts then you will have to pick those. You can do it either in the Graphics area of in the FM.

Regards, Scott

Just a thought here. A macro should be able to traverse the FM tree and reverse the selections. Then you could tell it to hide, suppress, etc.

WT

As an exercise for the student, make this macro a noshow. Hint: look for the hidebodies method. Must preselect items to show or hide.

' ****************************************************************************** ' SHOW.swb - macro recorded on 06/21/04 by kellnerp ' ****************************************************************************** Dim swApp As Object Dim Part As Object Dim boolstatus As Boolean Dim longstatus As Long, longwarnings As Long Dim FeatureData As Object Dim Feature As Object Dim Component As Object Sub main()

Set swApp = Application.SldWorks

Set Part = swApp.ActiveDoc Part.FeatureManager.ShowBodies Part.ClearSelection2 True

End Sub

How about using a folder to put parts to display? Then just right click the folder to suppress or unsuppress all parts in that folder. Incontext parts would be screwed up though!

Keith

Try the Visibility Toggling program at:

formatting link
It cost's $20, but it does eactly what you're looking for plus a couple other things.

Ken

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required