Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

file path display 2

Status
Not open for further replies.

pdelnet

Mechanical
May 13, 2005
115
At the very top of the Solid works screen (in a blue bar) it has the file name that is open shown, I my case it shows " SolidWorks Office Professional 2006 - [filename.sldprt]", its the area inside the square brackets that I am intersted in. Does anyone know how to have the file name include the complete name and path, ie: "c:\jobfiles\parts\partname.sldprt"

SW 2006 SP3.4
Dell Inc. Precision WorkStation 670
2048 Megabytes Installed Memory
NVIDIA Quadro FX 1400 [Display adapter]
Windows 2000 SP5

 
Replies continue below

Recommended for you

I have to look it up. I have done it before, my VAR helped me once.

Chris
Systems Analyst, I.S.
SolidWorks/PDMWorks 05
AutoCAD 06
ctopher's home site (updated 06-21-05)
FAQ559-1100
FAQ559-716
 
Chris

I would be interested in learning how to do that also.

Cheers,

Ralph Wright, CSWP
SolidWorks 2005, SP5.0
P4, 2.53Ghz
1.5 Gb RAM
ATI Fire GL8800 Card
Windows 2000 Pro
 
I know that you can see references from the file menu, but I would really like to have the entire path displayed on the display bar at the top of the screen as a default setting for every opened file.

SW 2006 SP4.0
Dell Inc. Precision WorkStation 670
2048 Megabytes Installed Memory
NVIDIA Quadro FX 1400 [Display adapter]
Windows 2000 SP5

 
At the very top of the Solid works screen (in a blue bar)

That's called the "Title Bar". The text it displays is a Windows option. Open Windows Explorer (or My Computer, or whatever it called). Go to the Tools menu and select Folder Options. Choose the View tab. Check the box next to "Display full path in titlebar".

Should be good to go now,
Ken
 
That was my first thought, Ken, but that only works for Windows Explorer windows. The only setting on that view tab that affects SW is the "Hide extensions for known file types" setting.
 
handleman,

Are you sure about that? Every computer with Windows XP that I've set as described above, has given the results I described as well.

As for settings in Windows Explorer that could affect programs other than Windows Explorer...I know that if you check the box next to "Show hidden files and folders", that you will see all of those temp files that (windows?) creates with the ~ at the beginning of the filenames will show up everywhere (SW, M$ Word) that you have open files.

There are probably a couple more settings in Windows Explorer that will affect other programs too, but I haven't verified any others.

I always click the "Apply to All Folders" button too, but I don't know if that should matter or not.

Ken
 
Ken,

I may spoken too quickly. I have that option checked on my machine, but SW doesn't display the full path. However, I may need to click that button to apply to all folders. Sorry also for my sloppy post. I meant to say "affects the SW title bar".

 
handleman,

Looks like I need to know what I'm talking about before I speak because now all I see in the SW title bar is the filename. I thought it used to display the entire path in SW as well, but it must only be within the Windows Explorer as you stated earlier.

Sorry for the confusion,
Ken
 
I just spoke with my VAR and they said no way unless I want to get into some visual basic programming, not going to happen. Rats - that would have been very helpful and offer some degee of peace of mind about the file I am working on.

SW 2006 SP4.0
Dell Inc. Precision WorkStation 670
2048 Megabytes Installed Memory
NVIDIA Quadro FX 1400 [Display adapter]
Windows 2000 SP5

 
Exactly what are you trying to do. Someone may be able to come up with some alternate solution.

SA
 
"SolidAir (Mechanical) 24 Apr 06 13:38
Exactly what are you trying to do. Someone may be able to come up with some alternate solution.

SA "

Does anyone know how to have the file name include the complete name and path, ie: "c:\jobfiles\parts\partname.sldprt"

SW 2006 SP4.0
Dell Inc. Precision WorkStation 670
2048 Megabytes Installed Memory
NVIDIA Quadro FX 1400 [Display adapter]
Windows 2000 SP5

 
There is one way to display the entire path of the file your are working on.

The way to do it is:

1.Activate the web toolbar from View/Toolbars
2. Click "Open Internet Address" button and browse for the file you want to work on.

If you open the file in this way the entire path is displayed in the drop down box just next to the web toolbar.

Regards
 
Thanks that does work. Curiuos are there any issues in opening files this way as opposed to the regular way?

SW 2006 SP4.0
Dell Inc. Precision WorkStation 670
2048 Megabytes Installed Memory
NVIDIA Quadro FX 1400 [Display adapter]
Windows 2000 SP5

 
The only problem (if you can call it ) is that after opening some files in the above mentioned way, the software remembers all the paths. Hence the address bar/ drop down box becomes cluttered. I have not yet found a way to clear the stored paths from the drop down box.


Regards
 
I checked out the links posted by SnowCrash. This seems on the surface to work only with Office apps. SolidWorks has a GetTitle in the API, but the SetTitle2 only works on a new doc that has not yet been saved. There may be some way to mess with the title bar through Windows API, but I don't know a whole lot about that.

If all you want to do is make sure the path of the file you're working on at a glance, you can set the status bar text pretty easily. At SolidAir's suggestion (in another thread) I've been learning about class modules and using the event triggers in SW. The macro at


when run will stay active for the current SW session and catch any change of active document in SW. It will write the full path of the active document to a status bar pane. Depending on how long your file paths are and other settings on your machine, the full path may be too long to display. In the Class module "MyListeningClass" is a constant named "MAXLEN" with a value of 110. Any path longer than this will have the middle cut out and replaced with "....." to reduce the total length of the string to MAXLEN (or MAXLEN-1, depending on even/odd). You can adjust MAXLEN to a value that suits your system.
 
This doesn't seem like something that would be doable in SW cuz of the way SW handles open documents. It only allows one document in memory with a particular name, but that document isn't necessarily tied down to a path (since it can change during the session).

Maybe someone could create a macro that displays the current path in the Feature Tree? GetPathName (instead of GetTitle) could be used to grab the whole path, then you can do whatever you want with the info in the macro. :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor