Jump to content

Can CUstom Tools be added to a Custom Ribbon?


Paul Maxx

Recommended Posts

I have created a Custom Tool in a palette and would like to add it to a Custom Ribbon I have made. The goal is to have commands such as MTEXT use a specific style and or have a Polyline command go on a specific layer automatically. I have spent about 45 minutes trying to find a solution but have had no luck.

 

Is this possible or are the Custom Tools only available on a Tool Palette?

 

Thanks in advance!

Link to comment
Share on other sites

Yes, this is possible.

 

You might try looking at either a command macro (which does not offer much by way of *error*, or layer checking), or using a reactor (which can handle all of the above).

 

 

Edit: AutoCAD LT does not support LISP, please ignore the reactor suggestion.

Link to comment
Share on other sites

Oooo... scratch the reactor talk... You're using LT, which does not support LISP. Sorry, mate.

 

Sample Macro for automatic layer:

^C^C^P._-layer;s;[color=red]DesiredLayerName[/color];;._mtext;._layerp;^P

 

 

 

Or this:

^C^C^P(setvar 'clayer [color=red]DesiredLayerName[/color]);._mtext;._layerp;^P

 

 

Again, no *error* checking.

 

Also:

http://forums.augi.com/showthread.php?t=116937

Link to comment
Share on other sites

Thanks for the Macros. I think I will continue developing the Custom Tools in the Palettes though as I want the Layers to be created with the command and I think it will be faster to create (drag and drop) and easier to customize should a change ever be required. I also have quite a few tools to add and need to distribute this to multiple users and I think management would be easier as well with the palettes.

 

Thanks again for the quick assistance!

Link to comment
Share on other sites

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