Some potential enhancement ideas if there are any takers:
- Ability to unhide
- Support Display States not linked to configurations
- Separate toggle for base planes
- Option to hide surfaces
Awesome, I'll try it out here shortly.AlexB wrote: ↑Thu Jul 07, 2022 11:40 am @jcapriotti , I updated the file in my previous post with one that seems to work better on assemblies as well.
For read-only files, any changes will be skipped (this assumes these files are checked-in and cannot be changed anyway). There is a prompt that asks for permission to open then close files to affect the inactive display states if that check box is selected.
I am getting this error, do you know why?AlexB wrote: ↑Thu Jul 07, 2022 11:40 am @jcapriotti , I updated the file in my previous post with one that seems to work better on assemblies as well.
For read-only files, any changes will be skipped (this assumes these files are checked-in and cannot be changed anyway). There is a prompt that asks for permission to open then close files to affect the inactive display states if that check box is selected.
What does the error say?
Add this IF statement above the highlighted line in your error image.
Code: Select all
If mCompModelDoc(swChildComp) Is Nothing Then
swChildComp.SetSuppression2 swComponentSuppressionState_e.swComponentFullyResolved
End If
Still sometimes receiving an error on some assemblies, but i'm not sure why.AlexB wrote: ↑Thu Feb 02, 2023 2:12 pm Add this IF statement above the highlighted line in your error image.
Code: Select all
If mCompModelDoc(swChildComp) Is Nothing Then swChildComp.SetSuppression2 swComponentSuppressionState_e.swComponentFullyResolved End If