Inventor General Discussion

Inventor General Discussion

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

Macro/Keyboard Command For Exporting .idw To .dxf

500 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,212
Registered: ‎04-27-2005
Message 2 of 7 (498 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: 2,930
Registered: ‎03-08-2006
Message 3 of 7 (490 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 (487 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,212
Registered: ‎04-27-2005
Message 5 of 7 (478 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 (472 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,212
Registered: ‎04-27-2005
Message 7 of 7 (459 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.

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.