I've done something stupid and need the braintrust....

User avatar
doobes
Posts: 162
Joined: Sat Apr 16, 2022 5:59 pm
Answers: 1
Location: Williamsburg, VA
x 28
x 101
Contact:

I've done something stupid and need the braintrust....

Unread post by doobes »

So,

I'm designing a mount for a bunch of electronics gear for my homelab. It will be 3D printed, but that really doesn't matter.

In the process, I did something and now, there is nothing in the window:

image.png

If I highlight the feature, it will display for as long as it's highlighted.

Any idea what I did and how to undo it?

Unfortunately, I've done this in the past and was never able to figure out why.

This is Swx v2023 SP5 if it makes any difference.

cheers,
chris
User avatar
Andy_Sanders
Posts: 8
Joined: Wed Mar 17, 2021 12:59 pm
Answers: 1
Location: Michigan
x 2
x 12

Re: I've done something stupid and need the braintrust....

Unread post by Andy_Sanders »

Are the solid bodies hidden?
All we are is dust in the wind, dude
-Ted
User avatar
AlexLachance
Posts: 2322
Joined: Thu Mar 11, 2021 8:14 am
Answers: 18
Location: Quebec
x 2521
x 2134

Re: I've done something stupid and need the braintrust....

Unread post by AlexLachance »

doobes wrote: Fri Feb 07, 2025 9:20 am So,

I'm designing a mount for a bunch of electronics gear for my homelab. It will be 3D printed, but that really doesn't matter.

In the process, I did something and now, there is nothing in the window:


image.png


If I highlight the feature, it will display for as long as it's highlighted.

Any idea what I did and how to undo it?

Unfortunately, I've done this in the past and was never able to figure out why.

This is Swx v2023 SP5 if it makes any difference.

cheers,
Check in the solid bodies folder as Andy suggested. You can also Shift+TAB in the environment, Shift+TAB is "Show hidden" where the mouse is hovering.

You could also right click on the feature and click on the eye so that it shows whatever the feature is attached to, if the issue is that it was hidden.
User avatar
doobes
Posts: 162
Joined: Sat Apr 16, 2022 5:59 pm
Answers: 1
Location: Williamsburg, VA
x 28
x 101
Contact:

Re: I've done something stupid and need the braintrust....

Unread post by doobes »

Andy_Sanders wrote: Fri Feb 07, 2025 9:30 am Are the solid bodies hidden?
Now I feel REALLY stupid....

thanks
chris
User avatar
AlexLachance
Posts: 2322
Joined: Thu Mar 11, 2021 8:14 am
Answers: 18
Location: Quebec
x 2521
x 2134

Re: I've done something stupid and need the braintrust....

Unread post by AlexLachance »

doobes wrote: Fri Feb 07, 2025 9:39 am Now I feel REALLY stupid....

thanks
We've all been there UU
DLZ_SWX_User
Posts: 79
Joined: Mon Dec 20, 2021 1:40 pm
Answers: 0
Location: Thumb Area of Michigan, USA
x 274
x 41

Re: I've done something stupid and need the braintrust....

Unread post by DLZ_SWX_User »

Andy_Sanders wrote: Fri Feb 07, 2025 9:30 am Are the solid bodies hidden?
The first several times it happened to me I was totally lost! Now I use the "Tab" & "Shift Tab" to hide/unhide things all that time just because I can! UU
User avatar
SPerman
Posts: 2155
Joined: Wed Mar 17, 2021 4:24 pm
Answers: 14
x 2362
x 1977
Contact:

Re: I've done something stupid and need the braintrust....

Unread post by SPerman »

Does anyone know of a macro that will unhide all bodies in a multi-body part?
-
I may not have gone where I intended to go, but I think I have ended up where I needed to be. -Douglas Adams
MattW
Posts: 69
Joined: Wed May 12, 2021 12:39 pm
Answers: 2
x 5
x 38

Re: I've done something stupid and need the braintrust....

Unread post by MattW »

Not a macro, but you can click this and then window everything.
Attachments
image.png
DLZ_SWX_User
Posts: 79
Joined: Mon Dec 20, 2021 1:40 pm
Answers: 0
Location: Thumb Area of Michigan, USA
x 274
x 41

Re: I've done something stupid and need the braintrust....

Unread post by DLZ_SWX_User »

MattW wrote: Fri Feb 07, 2025 5:28 pm Not a macro, but you can click this and then window everything.
Thank You! I have been looking for that for some time. I normally would go through my feature tree looking at my absorbed sketches looking for sketches that didn't have bodies showing! On my smaller parts that wasn't a big issue but on large multibody parts it could take awhile.
User avatar
AlexLachance
Posts: 2322
Joined: Thu Mar 11, 2021 8:14 am
Answers: 18
Location: Quebec
x 2521
x 2134

Re: I've done something stupid and need the braintrust....

Unread post by AlexLachance »

DLZ_SWX_User wrote: Mon Feb 10, 2025 7:08 am Thank You! I have been looking for that for some time. I normally would go through my feature tree looking at my absorbed sketches looking for sketches that didn't have bodies showing! On my smaller parts that wasn't a big issue but on large multibody parts it could take awhile.
If you're looking for something similar in an assembly you can use this:
image.png
User avatar
SPerman
Posts: 2155
Joined: Wed Mar 17, 2021 4:24 pm
Answers: 14
x 2362
x 1977
Contact:

Re: I've done something stupid and need the braintrust....

Unread post by SPerman »

I found a macro for assemblies that unhides everything with 1 button click. I was hoping to find a macro that did the same for multi-body parts.

Code: Select all

'**********************
'Copyright(C) 2023 Xarial Pty Limited
'Reference: https://www.codestack.net/solidworks-api/document/assembly/components/show-with-dependents/
'License: https://www.codestack.net/license/
'**********************

Private Declare PtrSafe Function SendMessage Lib "User32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
 
Dim swApp As SldWorks.SldWorks
 
Sub main()
 
     Set swApp = Application.SldWorks
     
     Dim swAssy As SldWorks.AssemblyDoc
     Set swAssy = swApp.ActiveDoc
     
     If Not swAssy Is Nothing Then
     
        Dim swComp As SldWorks.Component2
        Set swComp = swAssy.SelectionManager.GetSelectedObjectsComponent3(1, -1)
        
        If swComp Is Nothing Then
            Set swComp = swAssy.ConfigurationManager.ActiveConfiguration.GetRootComponent3(False)
        End If
        
        ShowWithDependents swComp
        
     Else
        MsgBox "Please open assembly"
     End If
     
 End Sub
 
Sub ShowWithDependents(comp As SldWorks.Component2)
    
    comp.Select4 False, Nothing, False
    
    Const WM_COMMAND As Long = &H111
    Const SHOW_WITH_DEPENDENTS_CMD As Long = 33227
    
    Dim swFrame As SldWorks.Frame
    
    Set swFrame = swApp.Frame
    
    SendMessage swFrame.GetHWnd(), WM_COMMAND, SHOW_WITH_DEPENDENTS_CMD, 0
     
End Sub
-
I may not have gone where I intended to go, but I think I have ended up where I needed to be. -Douglas Adams
User avatar
Glenn Schroeder
Posts: 1550
Joined: Mon Mar 08, 2021 11:43 am
Answers: 23
Location: southeast Texas
x 1818
x 2169

Re: I've done something stupid and need the braintrust....

Unread post by Glenn Schroeder »

AlexLachance wrote: Mon Feb 10, 2025 8:03 am If you're looking for something similar in an assembly you can use this:


image.png
Or this (right-click on the file name at the top of the tree).
image.png
"On the days when I keep my gratitude higher than my expectations, well, I have really good days."

Ray Wylie Hubbard in his song "Mother Blues"
Post Reply