I have set-up a DWT file with custom layers for my office. I would also like the layers to be available on a tab in the Tool Palette. I have successfully added networked custom tabs to the Tool palette for text/dim/leader styles, blocks & commands. For the life of me, I cannot figure out how to add custom layers.
Can someone share their method for adding layers? I have tried copying the layers from Design Center, but it didn't work for me.
Thanks!
Solved! Go to Solution.
Solved by edwin.prakoso. Go to Solution.
You can copy any of the existing tool in your palette, right click above new tool, then choose properties from context menu.
The tricky part is you need to type the macro to create desired layer.
For this sample, the macro is:
-LAYER;M;NEWLAYER;C;2;;L;DASHED;;LW;0.2;;;
It will create layer named "NEWLAYER", using Yellow (index color no. 2) and lineweight 0.2.
If you are not familiar with macro, you might want to read about script and macro here:
How to create AutoCAD script (there are information how to get the command for your macro there) and how to create AutoCAD macro (how to create the actual macro).
Optionaly, you can write an AutoLISP program as provided for AIA layers in Cadalyst here.