problem with idw to dxf conversion

problem with idw to dxf conversion

KarlR.J.Wehr
Enthusiast Enthusiast
481 Views
2 Replies
Message 1 of 3

problem with idw to dxf conversion

KarlR.J.Wehr
Enthusiast
Enthusiast

Hi all,

 

I have problem converting idw to dxf files. I have some lines of code written in C#, which get the inventor application, open the file, get the translator object and set the option for the ini file with the dxf export options and finally call the save copy as command.

 

All is going well when I use an Inventor already running, but when the code starts the inventor application by itself using the CreateInstance command, inventor throws an error when calling the save copy as command which says, that the current file is no drawing document. The original message is in german: 'Das Dokument, das Sie speichern möchten, ist kein Zeichnungsdokument.'.

 

All other translators (e.g. pdf) are working without any problems and the described problem only occurs on one specific computer, so it is not reproducable.

 

Does anyone have any idea? I really appreciate all suggestions. The code is attached.

 

 

Kind regards
Karl

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

Anonymous
Not applicable

Hi,

 

I've had issues before where the application hadn't initialized before the next command ran. It's possible that your document.open command hasn't finished actually happening, but ilogic keeps rolling on anyways and gets to the error first.

 

I added a system.wait command (I think) in cases like this with some success.

 

Hope this helps,

Dave

0 Likes
Message 3 of 3

chandra.shekar.g
Autodesk Support
Autodesk Support

Hi @KarlR.J.Wehr,

 

@Anonymous might be true. Along with that, make the inventor application is visible.

 

invApp.Visible = true;

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes