Is there a lisp routine to switch layers back and forth?

Is there a lisp routine to switch layers back and forth?

Anonymous
Not applicable
712 Views
3 Replies
Message 1 of 4

Is there a lisp routine to switch layers back and forth?

Anonymous
Not applicable

Hello everyone,

I’m fairly new to lisp functions. At my old job we had a command that would turn one layer (S-BEAM-STEEL) to  an existing layer (E-BEAM-STEEL). If the existing layer was not there it would create it. It would also change it to be a different color. You could select a whole detail and switch all its layers in one command. The thing is if you select all the layers and enter the command again it would change the existing layers to the original layer. So you can go back and forth and change original layer to existing layer and existing back to original layer. I’m having trouble trying to replicate this routine. If any one can help or steer me in the right direction that’d be great. 

0 Likes
713 Views
3 Replies
Replies (3)
Message 2 of 4

ВeekeeCZ
Consultant
Consultant

I think this is also a fairly easy task to learn some from.

Start with something, think about the issue, do some search.

When you get stuck, post what you got so far, then we can help you.

0 Likes
Message 3 of 4

Anonymous
Not applicable

Yeah you’re right is there a way to delete this post and I’ll just post it again if I run into an issue. 

0 Likes
Message 4 of 4

Anonymous
Not applicable

Never mind I don’t think you can delete it. I just didn’t want someone googling the same issue and running into this post. If I find a solution I’ll just post it in here and if I end up creating a new post I’ll just come back and link it.

0 Likes