Inventor General Discussion

Inventor General Discussion

Reply
Member
garmoor
Posts: 3
Registered: ‎10-25-2012
Message 1 of 7 (534 Views)

Macro/Keyboard Command For Exporting .idw To .dxf

534 Views, 6 Replies
10-26-2012 06:40 AM

Hello everyone,

 

I have keyboard commands set up for exporting my .idw drawings to .pdf format (PD for me.) I would also like to set this up for exporting my drawing to .dxf format. I think this can be done with a macro that can be activated by a keyboard command, but I could be wrong. I don't want to do this with an iLogic. Does anyone else have this written all ready? I have absolutely no experience with script writing and would appreciate any help! Or if anyone has a better suggestion, that would be great as well!

 

~Gary

*Expert Elite*
karthur1
Posts: 4,327
Registered: ‎04-27-2005
Message 2 of 7 (532 Views)

Re: Macro/Keyboard Command For Exporting .idw To .dxf

10-26-2012 06:54 AM in reply to: garmoor

You can snip it out of this. (u will have to extract from zip first).

*Expert Elite*
Curtis_Waguespack
Posts: 3,000
Registered: ‎03-08-2006
Message 3 of 7 (524 Views)

Re: Macro/Keyboard Command For Exporting .idw To .dxf

10-26-2012 07:16 AM in reply to: garmoor

Hi garmoor,

 

Iin addtion to karthur1's reply, be aware that there is a customization forum where you can search and post programming related question such as this.

http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/bd-p/120

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com



  solution.png  Did you find this reply helpful ? If so please use the Accept as Solution or  Kudos button below.





Member
garmoor
Posts: 3
Registered: ‎10-25-2012
Message 4 of 7 (521 Views)

Re: Macro/Keyboard Command For Exporting .idw To .dxf

10-26-2012 07:19 AM in reply to: karthur1

I have loaded the ivb file and assigned it a key prompt (DX.) However, when I enter this, nothing appears to happen. Am I doing something wrong?

*Expert Elite*
karthur1
Posts: 4,327
Registered: ‎04-27-2005
Message 5 of 7 (512 Views)

Re: Macro/Keyboard Command For Exporting .idw To .dxf

10-26-2012 07:33 AM in reply to: garmoor

Just wondering... are u doing this so you can export the flat pattern?

Member
garmoor
Posts: 3
Registered: ‎10-25-2012
Message 6 of 7 (506 Views)

Re: Macro/Keyboard Command For Exporting .idw To .dxf

10-26-2012 07:36 AM in reply to: karthur1

No, I need to export the entire drawing (side views and all) into DXF. The line that it's asking me to debug is:

    b = dxfAddIn.HasSaveCopyAsOptions(file, context, map)

*Expert Elite*
karthur1
Posts: 4,327
Registered: ‎04-27-2005
Message 7 of 7 (493 Views)

Re: Macro/Keyboard Command For Exporting .idw To .dxf

10-26-2012 08:00 AM in reply to: garmoor

Not exactly sure why you are getting that error. Hopefully someone else can take a look.

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.