Paul Maxx Posted September 9, 2010 Share Posted September 9, 2010 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! Quote Link to comment Share on other sites More sharing options...
BlackBox Posted September 9, 2010 Share Posted September 9, 2010 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. Quote Link to comment Share on other sites More sharing options...
BlackBox Posted September 9, 2010 Share Posted September 9, 2010 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 Quote Link to comment Share on other sites More sharing options...
Paul Maxx Posted September 9, 2010 Author Share Posted September 9, 2010 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! Quote Link to comment Share on other sites More sharing options...
BlackBox Posted September 10, 2010 Share Posted September 10, 2010 You're welcome. Quote Link to comment Share on other sites More sharing options...
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.