".dwg" Export problem

".dwg" Export problem

Anonymous
Not applicable
360 Views
2 Replies
Message 1 of 3

".dwg" Export problem

Anonymous
Not applicable
Dear Friends,

I have created a view in drawing template and i want to save it as ".dwg".
I implement following code to dump ". dwg". sometime It doesnot dump dwg file.
Can you please tell what is problem with code?
Is their any setting required to export ".dwg" file?

Sample Code:

string dwgtemplate = Location + "\\Drawing\\DrawingTemplate.dwg";

m_DrawingDocument = (DrawingDocument)m_InvApplication.Documents.Open(dwgtemplate , true);


--------------Implmentation of Code to create Base view -----------

string outputDrawingPath = outputFolderPath + "\\Drawing.dwg";

m_DrawingDocument.SaveAs(outputDrawingPath , true);

m_DrawingDocument.Close(true);

Thanks & Regards,
Satyajeet

0 Likes
361 Views
2 Replies
Replies (2)
Message 2 of 3

rthelkap
Enthusiast
Enthusiast
try this one DrawingDocument->SaveAsInventorDWG()
0 Likes
Message 3 of 3

Anonymous
Not applicable
Thanks rthelkap
0 Likes