inventor api, open method.

inventor api, open method.

Anonymous
Not applicable
382 Views
1 Reply
Message 1 of 2

inventor api, open method.

Anonymous
Not applicable
Hey, i need some help with my open method,
I need to open a drawing in inventor and save it as dxf, via tha api.

So im doing the following:
_Documents = _Application->GetDocuments();
_Documents->Open(DocumentName,VARIANT_FALSE);
Document = _Documents->GetItemByName(DocumentName);

Were as the application is the inventor instance, after i open the inventor itself.
But the "open" does nothing. it suppose to open the drawing so i can see it doing it, and it just skip to the next line.
The i crash for lack of data.

Does anyone know why? is there a problem to use open method for drawings?

I'll really appriciate the help.
Thanks!

Lior.
0 Likes
383 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable

You are opening the drawing in invisible mode by
specifying VARIANT_FALSE in the Open method. Try opening visibly.

 

Sanjay-
0 Likes