Author Topic: Custom commands  (Read 2943 times)

0 Members and 1 Guest are viewing this topic.

texas1992

  • Guest
Custom commands
« on: October 02, 2011, 11:32:03 AM »
I am new to AutoCAD and really have just been asked to write a custom application that will export some layer data to an excel spreadsheet. I have done this but to get it to run the user has to work with the command line which they don't want to have to do.

First they have to execute the NETLOAD command which will force them to locate the .dll file that I have created.
second, they will have to type in the name and execute the command that runs the export.

The user does not want to do this. They simply wants to click a button and have the excel spreadsheet be displayed. By clicking the button the two commands are done for them automatically without the user doing nothing more than clicking the button.

I need to know how to do this. I need to know how to install a button that will run the custom application I have created. I was given some script that will create registry entries but I'm still not sure if this is what I want. I need to be sure that this will work especially if I am going to be messing with the registry.

Thanks.

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: Custom commands
« Reply #1 on: October 02, 2011, 12:08:30 PM »
You will be editing the CUI
and you will be creating a NEW button menu
and you will be entering your commands...


Navigate the Ribbon to Management > Customization > User Interface. You'll see this dialog box come up.

Create your new tool bar
add a button to it then add your command string
and test it..
Be your Best


Michael Farrell
http://primeservicesglobal.com/

texas1992

  • Guest
Re: Custom commands
« Reply #2 on: October 02, 2011, 06:48:58 PM »
Thanks for your response. I am using AutoCAD 2008 for now and I don't see the Management menu item.

I did go under Tools and found Customize but when I tried to work with that I got several errors. Any suggestions?

Thanks.

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: Custom commands
« Reply #3 on: October 03, 2011, 05:18:24 AM »
In the future let us know what version you are using so are instructions can be a specific as possible.

2008....seems like so long ago.

Give the following a read

http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=11027285

http://www.dailycad.com/2008/06/autocad-tutorial-to-add-a-button-to-the-ribbon-in-2009/
« Last Edit: October 03, 2011, 05:25:25 AM by Higgs Boson's Mate »
Be your Best


Michael Farrell
http://primeservicesglobal.com/