Page 1 of 1

What is the most efficient way to see where a file is saved?

Posted: Thu Oct 27, 2022 1:50 pm
by Mike Gera
In an assembly, what is the most efficient way to see the save location of an assembly or part in the feature tree?

Currently, I open the assembly or part, then do a "Save As". I feel like there must be a better way.

Thanks.

Re: What is the most efficient way to see where a file is saved?

Posted: Thu Oct 27, 2022 2:06 pm
by AlexLachance
Right click on it and go to "component properties
image.png
image.png

This also can do:
image.png

Re: What is the most efficient way to see where a file is saved?

Posted: Thu Oct 27, 2022 2:06 pm
by Glenn Schroeder
Click on the file name in the tree. Select the "Component Properties" icon. The file path will be in the dialog box that pops up.

image.png

image.png

Re: What is the most efficient way to see where a file is saved?

Posted: Thu Oct 27, 2022 2:12 pm
by Mike Gera
Thanks!

Re: What is the most efficient way to see where a file is saved?

Posted: Thu Oct 27, 2022 2:18 pm
by SPerman
Is there any way to make use of this outside of a drawing?

https://help.solidworks.com/2022/englis ... erties.htm
image.png
I was too slow.

Re: What is the most efficient way to see where a file is saved?

Posted: Fri Oct 28, 2022 3:42 am
by CT-Simo
Component Properties, as was already suggested. If you want to overview paths of all components, Pack & Go is pretty good that.

Anything further for that, I often setup special CUSTOMTOOLS Export profile for my customers just so that to get an overview of the whole assembly and whatever Custom Properties (or other special fields) are important for them. That can also be exported to Excel with component previews, but often just visiting the Export windows gives very important instant feedback for the designer.

Re: What is the most efficient way to see where a file is saved?

Posted: Fri Oct 28, 2022 6:44 am
by Anzu

Re: What is the most efficient way to see where a file is saved?

Posted: Fri Oct 28, 2022 8:26 am
by AlexLachance
CT-Simo wrote: Fri Oct 28, 2022 3:42 am Component Properties, as was already suggested. If you want to overview paths of all components, Pack & Go is pretty good that.

Anything further for that, I often setup special CUSTOMTOOLS Export profile for my customers just so that to get an overview of the whole assembly and whatever Custom Properties (or other special fields) are important for them. That can also be exported to Excel with component previews, but often just visiting the Export windows gives very important instant feedback for the designer.
Hey Simo,

Could it be possible to export in excel and then import back? That would be sweet!

Re: What is the most efficient way to see where a file is saved?

Posted: Fri Oct 28, 2022 10:17 am
by CT-Simo
AlexLachance wrote: Fri Oct 28, 2022 8:26 am Hey Simo,

Could it be possible to export in excel and then import back? That would be sweet!
Yes ;)


Re: What is the most efficient way to see where a file is saved?

Posted: Sun Oct 30, 2022 6:11 pm
by Stefan Sterk
I got this macro (Code below) that opens the file location in the Windows Explorer for the selected component.

Code: Select all

Option Explicit
Sub main()
    
    Dim swApp       As SldWorks.SldWorks
    Dim swModel     As SldWorks.ModelDoc2
    Dim swSelMgr    As SldWorks.SelectionMgr
    Dim swComponent As SldWorks.Component2
    Dim Path        As String
    
    Set swApp = Application.SldWorks
    Set swModel = swApp.ActiveDoc
    
    If swModel Is Nothing Then Exit Sub
    
    ' Get the selected component feature or entity
    Set swSelMgr = swModel.SelectionManager
    Set swComponent = swSelMgr.GetSelectedObjectsComponent4(1, -1)
    
    If Not swComponent Is Nothing Then
        Path = swComponent.GetPathName
    Else
        Path = swModel.GetPathName
    End If
    
    Shell "C:\Windows\explorer.exe /select," & Path, vbMaximizedFocus
    
End Sub

Re: What is the most efficient way to see where a file is saved?

Posted: Mon Oct 31, 2022 8:34 am
by DanPihlaja
For a part or assembly that you have open, do this:
Tap R to bring up recent documents
image.png
Then select "show in folder" for that document.
image.png
It won't work for components of assemblies unless you open them separately.

Re: What is the most efficient way to see where a file is saved?

Posted: Mon Oct 31, 2022 8:45 am
by Ronan
Before we used a PDM system, I used to click on Save As and the save dialogue would bring up the folder the model was stored in.