ApprenticeServerDrawingDocument fails to return RequiresUpdate property

ApprenticeServerDrawingDocument fails to return RequiresUpdate property

psaarloos
Collaborator Collaborator
710 Views
3 Replies
Message 1 of 4

ApprenticeServerDrawingDocument fails to return RequiresUpdate property

psaarloos
Collaborator
Collaborator

Hi,

 

I am trying to read the RequiresUpdate property of a ApprenticeServerDrawingDocument in a console application, but it fails all the time. How should I read this property from a console application?

 

 Inventor.ApprenticeServerComponent app = new Inventor.ApprenticeServerComponent();
                Inventor.ApprenticeServerDrawingDocument doc = app.Open(file) as Inventor.ApprenticeServerDrawingDocument;

                Console.WriteLine(doc.RequiresUpdate.ToString());

 

Is Invoking an option? Any sample code for that?

 

Regards,

Pim Saarloos

Regards,
Pim Saarloos
Product Manager
If my post answers your question, please click the "Accept as Solution" button. Kudos are much appreciated!
0 Likes
Accepted solutions (1)
711 Views
3 Replies
Replies (3)
Message 2 of 4

adam.nagy
Autodesk Support
Autodesk Support
Accepted solution

Hi Pim,

 

I guess you too get the error:

{"Not implemented (Exception from HRESULT: 0x80004001 (E_NOTIMPL))"}

... which means that it's not implemented for ApprenticeServerDrawingDocument. That property is coming from the base class ApprenticeServerDocument that's why it's listed for ApprenticeServerDrawingDocument as well, even though it's not available.

It works for part and assembly documents.


Cheers,  

 

 



Adam Nagy
Autodesk Platform Services
0 Likes
Message 3 of 4

psaarloos
Collaborator
Collaborator

Hi Adam,

 

That's indeed the same error. Thanks for your explanation. Too bad it's not available on drawing documents.

 

Regards,

Pim

Regards,
Pim Saarloos
Product Manager
If my post answers your question, please click the "Accept as Solution" button. Kudos are much appreciated!
0 Likes
Message 4 of 4

maxim.teleguz
Advocate
Advocate

did you ever get a solution to this?

0 Likes