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

Linetype Lisp???

8 REPLIES 8
Reply
Message 1 of 9
Anonymous
394 Views, 8 Replies

Linetype Lisp???

Is there a lisp routine that will maintain the linetypes after you've
changed the objects to layer 0?
Let me explain: We receive a lot of architectural files and I need to
temporarily import the objects into my drawings. I don't like to bring in
all of their layers and generally change the objects from the original layer
to layer 0. However, when I do this the linetypes are "By Layer" and all
change to Continuous. I'd like to maintain the linetype from it's original
layer state after I place them into layer 0.

Thanks for any help.

- Tom C.
8 REPLIES 8
Message 2 of 9
Anonymous
in reply to: Anonymous

Try GO-0.LSP from
http://www.turvill.com/t2/free_stuff

It moves everything in a drawing to Layer 0 while retaining all assigned
colors and linetypes, whether originally set explicitly or bylayer.
___

"Tom C." wrote in message
news:2E28BF87F29D2A343009A8D0430B980C@in.WebX.maYIadrTaRb...
> Is there a lisp routine that will maintain the linetypes after you've
> changed the objects to layer 0?
Message 3 of 9
Anonymous
in reply to: Anonymous

Thanks for the link Paul.
Unforntunately, I'm using Acad 2000 and the routine gets an error somewhere
in the first part of setting up the layers. Do you have a version for 2000?
I'm not too good with lisp and don't know how to tweak the code.

Thanks,

- Tom C.




"Paul Turvill" wrote in message
news:BBB807B5F7C7E3EF3AC3F19ECACF5522@in.WebX.maYIadrTaRb...
> Try GO-0.LSP from
> http://www.turvill.com/t2/free_stuff
>
> It moves everything in a drawing to Layer 0 while retaining all assigned
> colors and linetypes, whether originally set explicitly or bylayer.
> ___
>
> "Tom C." wrote in message
> news:2E28BF87F29D2A343009A8D0430B980C@in.WebX.maYIadrTaRb...
> > Is there a lisp routine that will maintain the linetypes after you've
> > changed the objects to layer 0?
>
>
Message 4 of 9
Anonymous
in reply to: Anonymous

Actually, the lisp routine had a variable in the wrong spot.... I can send
the 'fixed' one to you if you like... but it does not retain linetypes...
only colors.

If you wanna do it yourself find the line that reads: (third line of the
actual program):

"._layer" "_S" "0" "_T" "0" "_c" _conorm "0" "_f" "~0" ""

and change it to this:
"._layer" "_S" "0" "_T" "0" "_c" "8" _conorm "_f" "~0" ""

"Tom C." wrote in message
news:8B82DC728D594947D5C56E8249F834A3@in.WebX.maYIadrTaRb...
> Thanks for the link Paul.
> Unforntunately, I'm using Acad 2000 and the routine gets an error
somewhere
> in the first part of setting up the layers. Do you have a version for
2000?
> I'm not too good with lisp and don't know how to tweak the code.
>
> Thanks,
>
> - Tom C.
>
>
>
>
> "Paul Turvill" wrote in message
> news:BBB807B5F7C7E3EF3AC3F19ECACF5522@in.WebX.maYIadrTaRb...
> > Try GO-0.LSP from
> > http://www.turvill.com/t2/free_stuff
> >
> > It moves everything in a drawing to Layer 0 while retaining all assigned
> > colors and linetypes, whether originally set explicitly or bylayer.
> > ___
> >
> > "Tom C." wrote in message
> > news:2E28BF87F29D2A343009A8D0430B980C@in.WebX.maYIadrTaRb...
> > > Is there a lisp routine that will maintain the linetypes after you've
> > > changed the objects to layer 0?
> >
> >
>
>
Message 5 of 9
Anonymous
in reply to: Anonymous

Thanks Casey.
I replaced the line you gave and it worked as you said - only colors. Is
there a way to add the linetype variable in there?

Regards,

- Tom C.



"Casey Roberts" wrote in message
news:534AA00E4045EB2B1C2659F5A4C3249A@in.WebX.maYIadrTaRb...
> Actually, the lisp routine had a variable in the wrong spot.... I can send
> the 'fixed' one to you if you like... but it does not retain linetypes...
> only colors.
>
> If you wanna do it yourself find the line that reads: (third line of the
> actual program):
>
> "._layer" "_S" "0" "_T" "0" "_c" _conorm "0" "_f" "~0" ""
>
> and change it to this:
> "._layer" "_S" "0" "_T" "0" "_c" "8" _conorm "_f" "~0" ""
>
> "Tom C." wrote in message
> news:8B82DC728D594947D5C56E8249F834A3@in.WebX.maYIadrTaRb...
> > Thanks for the link Paul.
> > Unforntunately, I'm using Acad 2000 and the routine gets an error
> somewhere
> > in the first part of setting up the layers. Do you have a version for
> 2000?
> > I'm not too good with lisp and don't know how to tweak the code.
> >
> > Thanks,
> >
> > - Tom C.
> >
> >
> >
> >
> > "Paul Turvill" wrote in message
> > news:BBB807B5F7C7E3EF3AC3F19ECACF5522@in.WebX.maYIadrTaRb...
> > > Try GO-0.LSP from
> > > http://www.turvill.com/t2/free_stuff
> > >
> > > It moves everything in a drawing to Layer 0 while retaining all
assigned
> > > colors and linetypes, whether originally set explicitly or bylayer.
> > > ___
> > >
> > > "Tom C." wrote in message
> > > news:2E28BF87F29D2A343009A8D0430B980C@in.WebX.maYIadrTaRb...
> > > > Is there a lisp routine that will maintain the linetypes after
you've
> > > > changed the objects to layer 0?
> > >
> > >
> >
> >
>
>
Message 6 of 9
Anonymous
in reply to: Anonymous

My apologies, guys ... I thought I had uploaded the latest version of GO-0
to the site. Here's an updated one that works in A2K+ *and* handles
linetypes.
___

"Tom C." wrote in message
news:05E62C9354446BDA67BA04F6D47E31A9@in.WebX.maYIadrTaRb...
> Thanks Casey.
> I replaced the line you gave and it worked as you said - only colors. Is
> there a way to add the linetype variable in there?
Message 7 of 9
Anonymous
in reply to: Anonymous

(don't forget lineweights!)

"Tom C." wrote in message
news:05E62C9354446BDA67BA04F6D47E31A9@in.WebX.maYIadrTaRb...
> Thanks Casey.
> I replaced the line you gave and it worked as you said - only colors. Is
> there a way to add the linetype variable in there?
>
> Regards,
>
> - Tom C.
>
>
>
> "Casey Roberts" wrote in message
> news:534AA00E4045EB2B1C2659F5A4C3249A@in.WebX.maYIadrTaRb...
> > Actually, the lisp routine had a variable in the wrong spot.... I can
send
> > the 'fixed' one to you if you like... but it does not retain
linetypes...
> > only colors.
> >
> > If you wanna do it yourself find the line that reads: (third line of the
> > actual program):
> >
> > "._layer" "_S" "0" "_T" "0" "_c" _conorm "0" "_f" "~0" ""
> >
> > and change it to this:
> > "._layer" "_S" "0" "_T" "0" "_c" "8" _conorm "_f" "~0" ""
> >
> > "Tom C." wrote in message
> > news:8B82DC728D594947D5C56E8249F834A3@in.WebX.maYIadrTaRb...
> > > Thanks for the link Paul.
> > > Unforntunately, I'm using Acad 2000 and the routine gets an error
> > somewhere
> > > in the first part of setting up the layers. Do you have a version for
> > 2000?
> > > I'm not too good with lisp and don't know how to tweak the code.
> > >
> > > Thanks,
> > >
> > > - Tom C.
> > >
> > >
> > >
> > >
> > > "Paul Turvill" wrote in message
> > > news:BBB807B5F7C7E3EF3AC3F19ECACF5522@in.WebX.maYIadrTaRb...
> > > > Try GO-0.LSP from
> > > > http://www.turvill.com/t2/free_stuff
> > > >
> > > > It moves everything in a drawing to Layer 0 while retaining all
> assigned
> > > > colors and linetypes, whether originally set explicitly or bylayer.
> > > > ___
> > > >
> > > > "Tom C." wrote in message
> > > > news:2E28BF87F29D2A343009A8D0430B980C@in.WebX.maYIadrTaRb...
> > > > > Is there a lisp routine that will maintain the linetypes after
> you've
> > > > > changed the objects to layer 0?
> > > >
> > > >
> > >
> > >
> >
> >
>
>
Message 8 of 9
Anonymous
in reply to: Anonymous

Easy enough for anyone to add, if they want to...
___

"Peter Friedrich" wrote in message
news:8C17061B00B6A9062E9A41213D542EF7@in.WebX.maYIadrTaRb...
> (don't forget lineweights!)
Message 9 of 9
neilcooper33
in reply to: Anonymous

Hi

 

Sorry, i realise that this thread is really old.... been trying to find theversion of the lisp which does the linetypes too, are you able to post it please?

 

thanks in advance 🙂

 

N

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

Post to forums  

Autodesk Design & Make Report

”Boost