Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng 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
Joined
Mar 1, 2001
Messages
321
Location
US
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

Back
Top