how to change default properties to a specific layer or command ?

how to change default properties to a specific layer or command ?

yairMSKTU
Enthusiast Enthusiast
1,880 Views
4 Replies
Message 1 of 5

how to change default properties to a specific layer or command ?

yairMSKTU
Enthusiast
Enthusiast

ive seen a a drawing file where every time i use the dim toolbar icon (the small ones),  it creates a dim line from a specific layer with specific settings, regardless of what is the current layer set to.

how to do that ?

 

is it also possible to change the default properties to all polylines in a certain layer ?

for example,  when i change a polyline to layer X or create a polyline while current layer is X,  then its color and global width and other properties will also change.

0 Likes
1,881 Views
4 Replies
Replies (4)
Message 2 of 5

tramber
Advisor
Advisor

There is a variable named DIMLAYER, setting within a drawing.

There is a combobow to do that if you use ribbons :

tramber_0-1685953627891.png

 

 

About polylines, you can only change their future global width (specific to polylines and nothing to see with thickness) with PLINEWID within a drawing too


EESignature

0 Likes
Message 3 of 5

Kent1Cooper
Consultant
Consultant

There is a similar option to put all Hatch patterns on a specified Layer [the HPLAYER System Variable].  But for other things, you could make a custom command to undefine the regular command and make a new definition under the same name, which can include setting the Layer you want before calling the native command, and even resetting the Layer that was current when done.

 

Alternatively, a redefinition could just do the regular command and then change the Layer of the result to the desired one.  That would not require resetting the current Layer, but there can be complications -- for example, the LINE command can make multiple Lines together in one command, so changing the Layer of just the last object would not always have the intended result.

 

In the case of Polylines, you might consider how many commands to redefine in this way.  Polylines are the result of not just the PLINE command, but RECTANG, POLYGON, REVCLOUD, ELLIPSE if set to makes Polyline approximations rather than true Ellipses, and SKETCH if set to make Polylines rather than Lines [did I miss any?].

Kent Cooper, AIA
0 Likes
Message 4 of 5

tramber
Advisor
Advisor

And the best would be to use the tool palette (CTRL+3)

You can add any type of objects already set with the rigth properties and drag them directly in the palette.

Then it is ready to come with advanced settings. One button, one type of object with its layer, color and so on.

A right click on the tool to change it (properties...).

My palette :

tramber_0-1685965068839.png

 


EESignature

0 Likes
Message 5 of 5

Kent1Cooper
Consultant
Consultant

@tramber wrote:

And the best would be to use the tool palette (CTRL+3) ....


That's certainly simpler to set up than undefining and making new command definitions.  @yairMSKTU , does that make more sense to you, knowing that it means the only way to get your object automatically on the Layer you want is to use the Tool Palette?  You would not have the option to type in the command name or alias, and have the Layer set for you.

 

[Frankly, I have my doubts about the advisability of this whole approach to most object types.  I can sort of see it for Dimensions, but I can't imagine a scenario in which it would make sense for all Polylines always to be on the same Layer.  It kind of ruins the concept of Layering.]

Kent Cooper, AIA
0 Likes