Visual LISP, AutoLISP and General Customization

Reply
*C., Tom
Message 1 of 9 (173 Views)

Linetype Lisp???

173 Views, 8 Replies
08-13-2002 03:31 AM
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.
*Turvill, Paul
Message 2 of 9 (173 Views)

Re: Linetype Lisp???

08-13-2002 03:59 AM in reply to: *C., Tom
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?
*C., Tom
Message 3 of 9 (173 Views)

Re:

08-13-2002 04:25 AM in reply to: *C., Tom
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?
>
>
*Roberts, Casey
Message 4 of 9 (173 Views)

Re:

08-13-2002 08:51 AM in reply to: *C., Tom
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?
> >
> >
>
>
*C., Tom
Message 5 of 9 (173 Views)

Re:

08-14-2002 01:56 AM in reply to: *C., Tom
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?
> > >
> > >
> >
> >
>
>
*Turvill, Paul
Message 6 of 9 (173 Views)

Re:

08-14-2002 02:06 AM in reply to: *C., Tom
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?
*Friedrich, Peter
Message 7 of 9 (173 Views)

Re:

08-14-2002 02:33 AM in reply to: *C., Tom
(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?
> > > >
> > > >
> > >
> > >
> >
> >
>
>
*Turvill, Paul
Message 8 of 9 (173 Views)

Re:

08-14-2002 04:39 AM in reply to: *C., Tom
Easy enough for anyone to add, if they want to...
___

"Peter Friedrich" wrote in message
news:8C17061B00B6A9062E9A41213D542EF7@in.WebX.maYIadrTaRb...
> (don't forget lineweights!)
Member
neilcooper33
Posts: 3
Registered: ‎09-19-2005
Message 9 of 9 (131 Views)

Re: Re:

02-04-2013 04:52 AM in reply to: *Turvill, Paul

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 :smileyhappy:

 

N

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community