Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Error saving DXF from IDW

1 REPLY 1
Reply
Message 1 of 2
fernando.paes
130 Views, 1 Reply

Error saving DXF from IDW

Hello!

I would be very grateful if you could help me on this!

The problem is that most of times I try to save an IDW document or a flat pattern as DXF I run into the error "Component Request Pending" that says:

"This action cannot be completed because the other application is busy. Choose "Switch To" to activate the busy application and correct the problem"

If I click "Switch To" my Windows start menu opens! 😮
If I click "Retry" the box closes and then I finally get the DXF.

Question: If I'm running on SilentOperation why this msg is showed?

I've spent almost a day on this and I really don't know what to do to avoid it.

NOTE: It happens when I do it manually too. The error occurs more often when I have many applications opened.

The code is:

Dim oApp As Inventor.Application
Dim oDrawDoc As Inventor.DrawingDocument

Set oApp = CreateObject("Inventor.Application")
Set oDrawDoc = oApp.Documents.Open("C:\kn300.idw")
oDrawDoc.SaveAs "C:\kn300.dxf", True

Please help!

Thanks
FOP
1 REPLY 1
Message 2 of 2

I got it! You must use CommandManager instead of just SaveAs...

Call oApp.CommandManager.PostPrivateEvent(kFileNameEvent, "C:\kn300.dxf")
Call oApp.CommandManager.StartCommand(kFileSaveCopyAsCommand)

It worked very well in Inventor 7, so I decided to move to a computer that has IV8 and all I could get from Autodesk Inventor is "Unhandled Exception" or the same old error boxes...so who can explain that???

Thanks!

FOP

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report