Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Lisp to move old objects to their new layer

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
249 Views, 3 Replies

Lisp to move old objects to their new layer

We have adopted a new standard for layer names that includes an "S-" prefix.

But when someone inserts old details, it re-introduces the old layer names
without the prefix.

Does someone have a lisp that remedies this? Something that would find the
objects on the "Hatch" layer, and then move it to the "S-Hatch" layer? (as
well as several other layers)

I can make one easy enough, but I don't want to waste time if someone
already has something like this.
Thanks in advance.

G
3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: Anonymous

F. Gump wrote:
> We have adopted a new standard for layer names that includes an "S-"
> prefix.
>
> But when someone inserts old details, it re-introduces the old layer
> names without the prefix.
>
> Does someone have a lisp that remedies this? Something that would
> find the objects on the "Hatch" layer, and then move it to the
> "S-Hatch" layer? (as well as several other layers)
>
> I can make one easy enough, but I don't want to waste time if someone
> already has something like this.
> Thanks in advance.
>
> G

If you are using 2004, check out the layer translator.

rs
Message 3 of 4
Anonymous
in reply to: Anonymous

Yes, I have something that you could adopt.
Basically, it allows a selection set, breaks down the entity layer, changes
any aspect of the layer name, or in your case you can just read the layer
name and construct the new layer name by adding something to it.
It then changes the entity to the new layer name. It will work with adding
the same thing , S in your case to any entity layer name in your selection
set.

Dave Alexander

"F. Gump" wrote in message
news:6E5906B79B283B42EB8D97B631FA5DE4@in.WebX.maYIadrTaRb...
> We have adopted a new standard for layer names that includes an "S-"
prefix.
>
> But when someone inserts old details, it re-introduces the old layer names
> without the prefix.
>
> Does someone have a lisp that remedies this? Something that would find the
> objects on the "Hatch" layer, and then move it to the "S-Hatch" layer? (as
> well as several other layers)
>
> I can make one easy enough, but I don't want to waste time if someone
> already has something like this.
> Thanks in advance.
>
> G
>
>
>
>
>
Message 4 of 4
Anonymous
in reply to: Anonymous

LayTrans works great. Thanks.

"TCEBob" wrote in message
news:8F01BA60E15D18B1E8CA9F00547EC44A@in.WebX.maYIadrTaRb...
> F. Gump wrote:
> > We have adopted a new standard for layer names that includes an "S-"
> > prefix.
> >
> > But when someone inserts old details, it re-introduces the old layer
> > names without the prefix.
> >
> > Does someone have a lisp that remedies this? Something that would
> > find the objects on the "Hatch" layer, and then move it to the
> > "S-Hatch" layer? (as well as several other layers)
> >
> > I can make one easy enough, but I don't want to waste time if someone
> > already has something like this.
> > Thanks in advance.
> >
> > G
>
> If you are using 2004, check out the layer translator.
>
> rs
>
>

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost