Message 1 of 2
inventor api, open method.

Not applicable
04-23-2009
03:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.
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.