Inventor 2020 LongCap.iLogicVB ThisApplication.Caption = ThisDoc.Path CadTempo

Inventor 2020 LongCap.iLogicVB ThisApplication.Caption = ThisDoc.Path CadTempo

Anonymous
Not applicable
1,730 Views
11 Replies
Message 1 of 12

Inventor 2020 LongCap.iLogicVB ThisApplication.Caption = ThisDoc.Path CadTempo

Anonymous
Not applicable

I'm not an Inventor user but a customer of my CadTempo software is.  I had come across this ILogic rule that is intended to display the full document path in the title bar. display-full-document-path-in-inventor-title-bar which I recommend to Inventor/Cadtempo users.

 

He tells me that this will now only display the full path on the first document that is opened, subsequent files do not display the full path.

 

Do any of you know if Inventor 2020 works this ILogic rule any differently?

 

Many thanks.

kelly.young has edited your subject line for clarity: Inventor 2020 ILogic rule

0 Likes
1,731 Views
11 Replies
Replies (11)
Message 2 of 12

JamieVJohnson2
Collaborator
Collaborator

I probably has to do with the events.  If it is overwriting the title of the window, then its will need to be re-run every time any document is 'set active'.  Look as iLogic Event Triggers for the appropriate place to rerun the rule.

 

Jamie Johnson : Owner / Sisu Lissom, LLC https://sisulissom.com/
0 Likes
Message 3 of 12

Anonymous
Not applicable

Thanks for that Jamie, Neither he nor I are well versed in ILogic but I've suspected the event trigger being neglected or mis-written in some fashion. I'll follow up with him to double check.

 

Thanks.

0 Likes
Message 4 of 12

JaneFan
Autodesk
Autodesk

Hi @Anonymous , 

 

Using code ThisApplication.Caption = ThisDoc.Path to set Caption should be application level that it should work with all documents in active application. Just tried with 2020 that it is working fine. Can I know the inventor version which is showing the issue? 




Jane Fan
Inventor/Fusion QA Engineer
Message 5 of 12

MjDeck
Autodesk
Autodesk

@Anonymous , there might be a change of behavior compared to older versions. To work around it, please add a line to the rule:

ThisApplication.Caption = ThisDoc.Path
ThisApplication.Height = ThisApplication.Height ' to make sure the display updates

But note that even with this fix, the display won't always be correct. Ideally, this should be run on the Activate Document event. But that's not available in iLogic. So the best event is After Open Document. But if you
- open document A 
- open document B
- re-activate the document A window
- then the caption will show the path for document B. It should be A.


So I wouldn't recommend running this rule on an Open event.


As an alternative way to see the path, you can run the iProperty command by right-clicking on the filename at the bottom left corner of the view window:
iProperty on window.png

 


Mike Deck
Software Developer
Autodesk, Inc.

Message 6 of 12

Anonymous
Not applicable

@JaneFan , @MjDeck 

 

Thanks for the additional insight. I sent a link to this forum post to my customer but haven't heard back as yet. I'll post an update once I hear.

0 Likes
Message 7 of 12

Anonymous
Not applicable

@JaneFan 

 

I just spoke with him and he tells me he had just updated to the latest. It sounds that he apparently had it working with his earlier 2020 version.

 

I appreciate your help.

0 Likes
Message 8 of 12

MjDeck
Autodesk
Autodesk

The problem with the caption updating is logged as issue INVGEN-33326.


Mike Deck
Software Developer
Autodesk, Inc.

Message 9 of 12

Anonymous
Not applicable

@MjDeck That's good to know. I had a remote session with him the other day and we muddled through to no avail. He had said he would follow through with a call to Autodesk support.

 

Thanks for keeping us updated.

0 Likes
Message 10 of 12

FLETCHER.A
Enthusiast
Enthusiast

Reviving this post, has anyone had any luck?

0 Likes
Message 11 of 12

MjDeck
Autodesk
Autodesk

@FLETCHER.A ,  he problem with the caption updating (INVGEN-33326) has been fixed in Inventor 2022 and later.


Mike Deck
Software Developer
Autodesk, Inc.

Message 12 of 12

FLETCHER.A
Enthusiast
Enthusiast

Great to hear, thankfully we are upgrading in the new year

0 Likes