❗ Inventor Apprentice 2022 - cannot retrieve master propertysets

❗ Inventor Apprentice 2022 - cannot retrieve master propertysets

CattabianiI
Collaborator Collaborator
2,405 Views
29 Replies
Message 1 of 30

❗ Inventor Apprentice 2022 - cannot retrieve master propertysets

CattabianiI
Collaborator
Collaborator

Apprentice is widely use to get iProperties from outside Inventor,  the manual statesIf only the FullFileName is specified for part and assembly documents, the master document within the file is opened.
This is no longer true in Inventor 2022, what I get now are the property sets of factory document in the latest saved model state.
This definitely breaks any apprentice based application.

Could you please confirm this behaviour and let me know when it will be fixed?

0 Likes
2,406 Views
29 Replies
Replies (29)
Message 21 of 30

gilsdorf_e
Collaborator
Collaborator

Hello I'm talking about the original post that propertysets of model state files cannot be retrieved with apprentice server. You mentioned it would be fixed in the next release. 

 

0 Likes
Message 22 of 30

CattabianiI
Collaborator
Collaborator

The original post refers to master property sets you can retrieve through ApprenticeServerDocument.FilePropertySets after one of the first updates.

0 Likes
Message 23 of 30

gilsdorf_e
Collaborator
Collaborator

Alright, our developer tells me that it does not work. He gets a "member not found" exception when trying to do so.

0 Likes
Message 24 of 30

CattabianiI
Collaborator
Collaborator

The interop is properly referenced? Are you sure you're running Inv 2022.2? With previous versions did it work?
I cannot try at the moment on Inv 2022.2 but I'm 100% sure in 2022.1.1 it works.

0 Likes
Message 25 of 30

gilsdorf_e
Collaborator
Collaborator

Could it be that this is because we run apprentice from a Vault 2022 addon?

I see there is also a Interop.InventorApprentice library. This does not have the FilePropertySets. It is still version 1.0.

 

 

0 Likes
Message 26 of 30

gilsdorf_e
Collaborator
Collaborator

The Autodesk.Inventor.Interop.dll that comes with Vault still has version 26.0.0.0, while the one delivered with Inventor was updated to 26.1.0.0. 

0 Likes
Message 27 of 30

CattabianiI
Collaborator
Collaborator

Interesting, but I don't use Vault and I'm not an expert about Vault addon. I recommend to open another thread for this issue. Or if you wanna try you could replace the vault interop with the updated one.

 

0 Likes
Message 28 of 30

CattabianiI
Collaborator
Collaborator

And maybe the issue is the addon which is referencing that Interop.InventorApprentice created many years ago. Is the addon yours?

0 Likes
Message 29 of 30

gilsdorf_e
Collaborator
Collaborator

Thank you, we are testing replacing the DLL. Additionally I have raised that issue with our CSM and DSS.

Message 30 of 30

gilsdorf_e
Collaborator
Collaborator

The addon is ours and we are porting it from Vault 2020 to Vault 2022. Model states are now causing the pain.

We would happily change over from ApprenticeServer to InventorServer if it was supported not only in JobProcessor context but in Vault context in general.

0 Likes