Setting current properties from an existing object?

Setting current properties from an existing object?

Anonymous
Not applicable
5,216 Views
7 Replies
Message 1 of 8

Setting current properties from an existing object?

Anonymous
Not applicable

Anyone know how to create a new object in AutoCAD that's based on the properties of a selected object?

For example, if you select a line then when drawing a new line it will have the properties of the selected line (layer, style, colour etc.)

(not Match Properties)

0 Likes
Accepted solutions (2)
5,217 Views
7 Replies
Replies (7)
Message 2 of 8

pendean
Community Legend
Community Legend
Accepted solution
Wouldn't that be ADDSELECTED command in AutoCAD? Look it up in HELP.
Message 3 of 8

TheCADnoob
Mentor
Mentor

 

 

...edit: looks like i learned somethign new today 🙂

 

 

CADnoob

EESignature

Message 4 of 8

Anonymous
Not applicable

ADDSELECTED is just the ticket! Thanks Dean.

Message 5 of 8

Kent1Cooper
Consultant
Consultant
Accepted solution

For greater possibilities than ADDSELECTED, try MakeMore.lsp with its MM command, available here.

 

It has several advantages over ADDSELECTED -- some examples:

 

One of the best -- if you select a Polyline, ADDSELECTED will simply call up the PLINE command, whereas MM will offer you the various commands that make  Polylines [seven of them] as options to choose from.  And it can recognize certain types  [Rectangles, Donuts, Revclouds, Polygons], and offer the appropriate command as default.

 

For Text or Dimensions, MM offers the option to make a continuation of the selected one, or start a new one somewhere else.

 

For Points, ADDSELECTED just starts a Point command, but MM also offers Divide and Measure as options.

 

If you select something that has a non-default override  on some propert/ies [color, linetype, etc.], it warns you that it's changing the current-entity property/ies to match, and that you should change it/them back.  It does not change them back itself, because you might want to draw more than one of whatever you're Making More of, but it contains a MMR command [= MakeMore Reset] that will restore the property settings from beforehand.

 

And there are others....

 

You would still want ADDSELECTED in your quiver, because MakeMore was written under Acad2004, before certain entity types existed, so it won't duplicate every possible thing.  But if you pick one of those, it at least tells you that it has set the Layer and other properties to match it but isn't able to call the command for it.

Kent Cooper, AIA
Message 6 of 8

Anonymous
Not applicable

Excellent routine. I've loaded MakeMore.lsp too - thanks Kent. 

0 Likes
Message 7 of 8

Anonymous
Not applicable

How about maintaining those acquired settings (layer, color, line weight, width) for more than just one command?

 

0 Likes
Message 8 of 8

Kent1Cooper
Consultant
Consultant

@Anonymous wrote:

How about maintaining those acquired settings (layer, color, line weight, width) for more than just one command?


 

The MM command in MakeMore.lsp does that.

Kent Cooper, AIA
0 Likes