Title: Re: Help with Macro: Set Current Layer + Start LISP
Post by: JohnK on April 23, 2024, 10:45:42 AM
wait. I don't know anything about fast.lsp or how it works but adding in some "set a current layer" to a lisp is not that difficult and probably "easier" (more robust) to code because of all the situations you "should account for". For example: 1. What happens if the layer does not exist when you set it current? 2. What about setting the layer back to what it was before?
Title: Re: Help with Macro: Set Current Layer + Start LISP
Post by: CEHill on April 23, 2024, 10:51:44 AM
I see and agree. This makes sense. My AutoLISP skills are much less than what I want them to be.
The program, FAST.lsp, is attached for your review as you can.
The desired layer to place the objects from this program is named FASTENER.
Title: Re: Help with Macro: Set Current Layer + Start LISP
Post by: JohnK on April 23, 2024, 11:16:42 AM
Whoa!? Someone was swinging a sledgehammer when they wrote that; I would hate to have to maintain that code!
I'm going quick because I'm busy but here is a quick stab at adding in a layer for you. Comments added so you can make changes. Ask questions (but study these changes and understand what they do before just blindly asking questions).