Announcements

Announcement: We’re aware of an issue affecting starting a new topic from category pages and creating new blog posts. New topics can still be started directly from the relevant board. Learn more here.

Can mpedit be added as a button on a toolbar?

Can mpedit be added as a button on a toolbar?

Anonymous
Not applicable
931 Views
5 Replies
Message 1 of 6

Can mpedit be added as a button on a toolbar?

Anonymous
Not applicable

Can the command mpedit be added as a button on a toolbar and if so how?

0 Likes
Accepted solutions (1)
932 Views
5 Replies
Replies (5)
Message 2 of 6

augusto.goncalves
Alumni
Alumni
Check the CUI command to edit the interface of AutoCAD Civil 3D. There you can create a new ribbon/toolbar button that will run this command (at the macro field, add the command name).
Regards,



Augusto Goncalves
Twitter @augustomaia
Autodesk Developer Network
0 Likes
Message 3 of 6

Anonymous
Not applicable
I am using 2015 Civil 3D. cui>search Command list and type in mpedit and
it is not found? If it is a command why is it not in the command list?
Not sure what you mean by macro field.
Thanks,
0 Likes
Message 4 of 6

Anonymous
Not applicable

It's not exactly a command that loads from a DLL which is why you can't find it in CUI.  It's loading from a lisp file, but you can still configure it to a ribbon button, toolbar button, or context menu.

0 Likes
Message 5 of 6

Anonymous
Not applicable
How can a lisp file be turned into a toolbar button?
0 Likes
Message 6 of 6

Anonymous
Not applicable
Accepted solution

In CUI, do the following:

 

  1. Right-click on the Toolbars branch in the customization file and create a toolbar where you choose to store this button.  I have a customization file called "Cyndy" where I keep my custom configurations.  Makes it easier to migrate it to other versions.
  2. Insert any command on that toolbar.
  3. Edit the Button Properties on the right:
  4. Rename the resulting button "MPEdit".
  5. Edit the description.
  6. Edit the Command Display Name.
  7. Edit the Macro to read:  ^C^C_mpedit.
  8. After closing CUI, look for the little toolbar. It will be floating somewhere on your main screen.

Custom Toolbar Button.png