Jump to content

Recommended Posts

Posted

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.:unsure:

Posted

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]

Posted
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!!

Posted

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

Posted

in your cui editor select new button and that goes in the part that says macro

Posted

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!!!!

Posted

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!!

Posted

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

Posted

That worked really nice and simple!!Thanks so much!! i will give that a try. Have a nice day!!!!!!!

Posted

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

cui.jpg

cui detail.jpg

cui detail 2.jpg

Posted
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:

Posted

I got it! Thanks for your help from everyone!!

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...