customising tools
in Other
How can I customise a tool such as multileader, dimension or text so that it always puts it on the correct layer? Is it possible to write some code in the Comanad line of the customize dialogue that makes the correct layer current first or do I have to write a small script and direct the tool to that script?
Thanks
Ben
0
Comments
-
You can use TOOLPALETTES to do this type of thing. There are some command examples on the 'Draw' palette. Right click on any of those and pick on properties. In the dialogue that opens you'll see options to set LAYER etc...
Regards, Jason Bourhill CAD Concepts0 -
Hello ben,
you can also make your own tool in customization dialog (command "cui").
The macro would look like this: (command "_-layer" "m" "your layername"); (command "_mline" "scale" "your scale" "style" "your mlinestyle")
Greets,
Sascha0 -
I attached the image showing the simplest customization.
^c^c-layer;m;C-SITE-TEXT;;_mline
^c^c terminates active commands, you will want this on almost every custom button
-layer runs the command line version of layer
; is a carriage return just like you enter on the command line
C-SITE-TEXT is the sample layer name
Simple customization is very simple and will make BricsCAD a much more effective and productive tool.Simple Customization.png0 -
Reactors in a Lisp are probably the best bet, with a bit of programming, they will change the layer accordingly when you create your leader, and then change it back to the original layer.See this link:0
This discussion has been closed.