Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Thought everyone would like to know a tip about lsp??

Status
Not open for further replies.

shadow

Computer
Mar 1, 2001
321
I just figured this out while trying to fix a button macro with lsp in it this is the macro

^C^C^P_AI_molc;^P\-layer;lo;*;u;$m=$(getvar(clayer));^M

what it does is this
make the object layer current then locks all layers then unlocks the current layer

take a closer look at this part

$m=$(getvar(clayer))

this gets the current layer but the key is the () around CLAYER cause befor they were there i had just a,seperating getvar and clayer and the button would not work why you might ask
because the lock layer macro requires the name of the layer to be in "quotes" if it contains spaces and the () around CLAYER does that

and thats the rest of the story if everyone helps everybody the world will be a better place
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor