By default ACADe makes every wire in a drawing on a layer called “WIRES”. Now more layers can be added to the wire list in “Drawing Configuration and Defaults”, as you can see below. Now the first one in the layer list will always be the default for your wire command, and if you put one of the wild card first, it will select the first one in your layer properties manager. Another scenario is if you have a wire layer current, then the wire command will default to the current.
What I am offering is a different solution that I’ve work on for the wire command. The easiest way to create a wire command link to a selected layer wire; is to create a tool palette Icon.
As you can see below, this is the properties of an Icon tool palette. Under general you can select the layer that you want your Icon to be link too. Thanks to this option you could create a separate palette with all your type of wires you use. The only catch, that layer must exist.
The other option is once again to create an Icon in the CUI of ACADe. I’ve created a macro that activates the layer then activates the wire command. Now don’t get me wrong on this, I have NO experience in lisp routine or visual basic for AutoCAD but I do my best in finding work around. Again, for this tool to work, you must have the layer existing.
Macro = ^C^C-layer;s;"blk 1AWG";;^C^C^P(if(not wd_load)(if(setq x(findfile "wd_load.lsp"))(load x)))(wd_load);wd_inwire
P.S. This macro keeps the layer current once you are done.
Wire all you want now,
CADgneto
Comments