• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    Autodesk Inventor

    Reply
    Member
    Posts: 3
    Registered: ‎10-25-2012

    Macro/Keyboard Command For Exporting .idw To .dxf

    248 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

    Please use plain text.
    *Expert Elite*
    karthur1
    Posts: 3,626
    Registered: ‎04-27-2005

    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).

    Please use plain text.
    *Expert Elite*
    Curtis_Waguespack
    Posts: 1,988
    Registered: ‎03-08-2006

    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.

    Please use plain text.
    Member
    Posts: 3
    Registered: ‎10-25-2012

    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?

    Please use plain text.
    *Expert Elite*
    karthur1
    Posts: 3,626
    Registered: ‎04-27-2005

    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?

    Please use plain text.
    Member
    Posts: 3
    Registered: ‎10-25-2012

    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)

    Please use plain text.
    *Expert Elite*
    karthur1
    Posts: 3,626
    Registered: ‎04-27-2005

    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.

    Please use plain text.