Display full file path in title bar

Display full file path in title bar

gantonov
Enthusiast Enthusiast
1,835 Views
9 Replies
Message 1 of 10

Display full file path in title bar

gantonov
Enthusiast
Enthusiast

Hello everybody,

 

My question is, is there a way to display Inventor's full file path in the title bar, by default for all files I work on? As I found out, there is a way to show the current full file path using "iLogic" and/or "Visual Basic (VBA)". But how about if I want it to be by default, every time I start the program.

 

Thank you in advance!

0 Likes
Accepted solutions (1)
1,836 Views
9 Replies
Replies (9)
Message 2 of 10

WCrihfield
Mentor
Mentor

Since you already have iLogic code, you could do the following:

Put that iLogic code into an 'External Rule'.

Open any document > Go to the Manage Tab / iLogic section / click on Event Triggers.

Switch to the All Documents Tab > Drag that external rule over to After Open Document.

 

I hope this helps.

If this solves you problem, please click 'Accept As Solution'.

Or if this helps you out along the way to your solution, please click 'Like'.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 3 of 10

gantonov
Enthusiast
Enthusiast

I've got it, but the problem is I created my iLogic for particular part. The iLogic is in "This Document" tab, but is missing in "All Documents". So, no way to drag and drop it. See the attached files.

 

Maybe, if I know the location where this iLogic is stored I will be able to Import it or something like that? Do you have any idea?

0 Likes
Message 4 of 10

gantonov
Enthusiast
Enthusiast
Accepted solution

All set, all done!

I just had to create the iLogic in the model view iLogic tab. See the attached files. Then, it appears in the iLogic Trigger under All Documents. I dragged it under "After Open Document" and now it works for all documents. Busted!

 

Thanks a lot!

0 Likes
Message 5 of 10

tommy-z
Enthusiast
Enthusiast

Hi

I was sent a link to this thread by a nice man on ManicTime Support

 

I have been using ManicTime to remind me what I did 3-4 weeks ago, when I'm filling out my Timesheet

 

After I upgraded to Inv 2020, the ManicTime does no longer list the File-name with each entry for Inventor 2020, although tne name is visibly present in the main window title (same as Imv 2019 - which works with ManicTime)

I thought I'd try the method discussed here, but I am a total noob when it comes to iLogic and such.

 

Do you think you could share your script?

 

Thanks in advance

 

Regards

Tommy

 

0 Likes
Message 6 of 10

WCrihfield
Mentor
Mentor

It's a very simple iLogic code.  See below.

Dim oDoc As Document = ThisApplication.ActiveDocument
ThisApplication.Caption = oDoc.FullFileName

But for some reason, on my PC (Win 7 Pro + Inv 2020.2.2) It doesn't replace the (file name without path or extension) that usually shows, it just adds this to it, on the left.  Had to move my Quick Access Tool Bar below the ribbon, to be able to see the full path in my title bar.  I could have sworn there was a way to show only what you specify in the "Caption" in the title bar, but I'm not seeing an Application Option to change this behavior.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 7 of 10

WCrihfield
Mentor
Mentor

Be careful, though, because that "Caption" will remain in the title bar, even after you close the document, unless you have a second rule that fires on Document Close event, that sets the "Caption" back to "" (empty quotes).

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 8 of 10

tommy-z
Enthusiast
Enthusiast

Thank you for a quick answer

 

I gather that I just make a Global Rule and trigger that with the "Event Triggers", ie "after Open Document"?

 

 

Ill try

0 Likes
Message 9 of 10

tommy-z
Enthusiast
Enthusiast

Hurrahh, it works

 

 

But, as you said, the filename is 'persistant', it doesn't even change after I open a new part or assembly

 

 

Thanks for your help!

0 Likes
Message 10 of 10

WCrihfield
Mentor
Mentor

Yep. As I stated in about the 3rd post, this isn't one you would put in the "This Document" tab of the Event Triggers.  You would want to put in into the "All Documents" tab, under "After Open Document".  You could also put it under "New Document" & "After Save Document", for when you have started a New document, that hasn't been saved yet.  Then after you save it for the first time, and give it a name, it will then be displayed.

 

Then you would want to have a second external iLogic rule, that sets the Caption to "" (empty quotes).  And place that rule under the "Close Document" event, on the "All Documents" tab.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes