FileManager.SoftwareVersionSaved Return MessagePromt

FileManager.SoftwareVersionSaved Return MessagePromt

Anonymous
Not applicable
1,145 Views
7 Replies
Message 1 of 8

FileManager.SoftwareVersionSaved Return MessagePromt

Anonymous
Not applicable

I am using Application.FileManager.SoftwareVersionSaved.Major so that I can check for the file version without opening the file. But using this for the first instance will return 2 messagebox (Tube&Pipe and Cable&Harness) before getting the file version.

I also notice the if the Tube&Pipe and Cable&Harness are not autoloaded in add-in this will not prompt. This will also come up once.



0 Likes
Accepted solutions (1)
1,146 Views
7 Replies
Replies (7)
Message 2 of 8

johnsonshiue
Community Manager
Community Manager

Hi! Could you confirm that the Tube&Pipe and Cable&Harness Add-Ins are loaded? They need to be loaded so that any T&P or C&H assembly can be edited.

Many thanks!

 



Johnson Shiue ([email protected])
Software Test Engineer
0 Likes
Message 3 of 8

Anonymous
Not applicable

Thank you for your response, C&H and T&P are set to Load Automatically but in add-in manager (I'm using Inv2021) both are set to Automatic/Unloaded.
I also notice that if I try to check the Load behavior-> Loaded/Unloaded same message prompt will show then if I go back to Add-in Manager C&H and T&P are still Unloaded.

edolfoM4KH7_0-1616636313069.png

 



0 Likes
Message 4 of 8

Anonymous
Not applicable

Some additional things that may help,
it only happens at the initial loading of Inv, where  T&P and C&H in Addin manager Load behavior are still Automatic/parts then call this function. 
InvApp.FileManager.SoftwareVersionSaved(FullPath)

I also validate that there are no active documents before calling this function.
Don't Open anything on the session because it will change the T&P and C&H Load behavior to Automatic/Loaded
when this happen the issue will not be reprodusable 

0 Likes
Message 5 of 8

johnsonshiue
Community Manager
Community Manager

Hi! This sounds like a bug to me. I need to work with the project team to understand it better.

Many thanks!



Johnson Shiue ([email protected])
Software Test Engineer
0 Likes
Message 6 of 8

MjDeck
Autodesk
Autodesk
Accepted solution

@Anonymous , it does look like a bug. We should be able to get rid of these message boxes in a future release.
As a workaround, you can use code like the following to load the add-ins before calling the FileManager function. Here's a sample in VBA:

Dim tubeAndPipe As ApplicationAddIn
Set tubeAndPipe = ThisApplication.ApplicationAddIns.ItemById("{4D39D5F1-0985-4783-AA5A-FC16C288418C}")
If tubeAndPipe.LoadAutomatically And Not tubeAndPipe.Activated Then tubeAndPipe.Activate
Dim cableAndHarness As ApplicationAddIn
Set cableAndHarness = ThisApplication.ApplicationAddIns.ItemById("{C6107C9D-C53F-4323-8768-F65F857F9F5A}")
If cableAndHarness.LoadAutomatically And Not cableAndHarness.Activated Then cableAndHarness.Activate

Mike Deck
Software Developer
Autodesk, Inc.

Message 7 of 8

Anonymous
Not applicable
This workaround will work just fine for now. thank you for your respond regarding this matter
Message 8 of 8

MjDeck
Autodesk
Autodesk

Thanks for finding this. For reference, we entered it as internal issue number INVGEN-51700.


Mike Deck
Software Developer
Autodesk, Inc.

0 Likes