Message 1 of 3
Convert IDW to DWF
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I am doing a project which is about converting IDW files to DWF.
I problem i am facing is Inventor is getting crashed every non and then.
This is the below code which i am using to convert to DWF
Document oDoc = InvApp.Documents.Open(filenamepath, false);
DrawingDocument oDrwDoc = (DrawingDocument)oDoc;
DataIO aa;
oDrwDoc.Update(); // Here i am updating the drawing document
aa = oDrwDoc.Sheets[1].DataIO;
aa.WriteDataToFile("DWF", "C:\temp\test.dwf"); //Crash on this line
oDrwDoc.Close(true);
oDoc.Close(true);
If there is any other way which helps to do this, that would be helpful.
Cheers,
Amit
Senior Software Engineer