Inventor General Discussion

Inventor General Discussion

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

Macro/Keyboard Command For Exporting .idw To .dxf

529 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,305
Registered: ‎04-27-2005
Message 2 of 7 (527 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,987
Registered: ‎03-08-2006
Message 3 of 7 (519 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 (516 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,305
Registered: ‎04-27-2005
Message 5 of 7 (507 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 (501 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,305
Registered: ‎04-27-2005
Message 7 of 7 (488 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
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!