Hogfan Posted October 12, 2009 Posted October 12, 2009 I am using AC08 and have an older command i wanted to use. I have it in the AC and can use it from the command line. (dnote) is the command i am wanting to make a new button for it and place it on an existing toolbar. I have done this one time before but it has been so long ago, i have forgotten all the steps. As i mentioned i have it loaded in AutoCad and can use it. I would like to be able to make this button work, as i use this command daily!! ANY HELP?? Thanks. Quote
rkmcswain Posted October 12, 2009 Posted October 12, 2009 Use this for your button macro, assuming that "dnote" is the function name and the name of the file. [color=blue][font="Courier New"] ^C^C(if (not C:dnote)(load "dnote"));dnote [/font][/color] Quote
Hogfan Posted October 12, 2009 Author Posted October 12, 2009 Use this for your button macro, assuming that "dnote" is the function name and the name of the file. [font=Courier New][color=blue]^C^C(if (not C:dnote)(load "dnote"));dnote[/color][/font] This is greek to me, Does this get typed in on command line or what. I am not much on the programming side of AC! Sorry. Tell me where this goes and i will load it in appropriate place, Thanks!! Quote
nukecad Posted October 12, 2009 Posted October 12, 2009 You just have to copy and paste that command string into the button. You say that you are now using 08, but what version were you using before? The way that you do customisation has changed from the older versions, It used to be done thru dialogues that would change the .mns menu file, it is now done thru different dialogues that change the .cui (customisable user interface). Quote
chelsea1307 Posted October 12, 2009 Posted October 12, 2009 in your cui editor select new button and that goes in the part that says macro Quote
Hogfan Posted October 12, 2009 Author Posted October 12, 2009 I cannot find the button i made and therefore cant drop it into the button. What is the best way from scratch to make a new button and apply this command to it? Thanks for the quick response by the way!!!! Quote
Hogfan Posted October 12, 2009 Author Posted October 12, 2009 Can you tell me how to make a new button and drop this command into it, i cant find the button i made and dont know, how to do what your saying, i am new to programming side of AC!! Thanks for your fast reply earlier!! Quote
chelsea1307 Posted October 12, 2009 Posted October 12, 2009 type _cui at the command line. Then Custome User interface dialog box will pop up, in the bottom right hand side it will show you all avaliable buttons, right click on one of them and select new command, give it a name, next to macro paste what was posted above, edit the image, either choose a pre-made one or create one of your own and the drag it onto the toolbar you want it to be displayed on Quote
Hogfan Posted October 12, 2009 Author Posted October 12, 2009 That worked really nice and simple!!Thanks so much!! i will give that a try. Have a nice day!!!!!!! Quote
Glen Smith Posted October 12, 2009 Posted October 12, 2009 Ok, for starters, type CUI at the command line and you should get the Custom User Interface dialog box to open. In 2010 I have a little star that I click on to create a new command, mid way down the left side. On the right side where the ^C^C is, you will need to enter the code that was posted above. Once you have created the button, give it a new name and add it to a toolbar. Glen Quote
rkmcswain Posted October 12, 2009 Posted October 12, 2009 This is greek to me, Does this get typed in on command line or what. I am not much on the programming side of AC! Sorry. Tell me where this goes and i will load it in appropriate place, Thanks!! There is no programming involved, and everything you need has already been documented in the HELP file. Open HELP, go to the Customization Guide > CUI Editor FAQ's (near the bottom of the tree). From there, click on "How do I create a new command and add it to a user interface element, such as a pull-down menu?" Start there, and come back with specific questions if necessary. :wink: Quote
Hogfan Posted October 12, 2009 Author Posted October 12, 2009 I got it! Thanks for your help from everyone!! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.