jmyrwen Posted June 1, 2011 Posted June 1, 2011 i have this code but it is not working:( ^C^C^P$M=$(if,$(=,$(getvar,clayer),layer _ON "layername";,layer _Off layername";) Quote
Jack_O'neill Posted June 2, 2011 Posted June 2, 2011 No need to post more than once, or in more than one forum. You'll get the moderators wagging thier fingers at you. I asked a question and made a suggestion in your other post. Quote
alanjt Posted June 2, 2011 Posted June 2, 2011 i have this code but it is not working:( ^C^C^P$M=$(if,$(=,$(getvar,clayer),layer _ON "layername";,layer _Off "layername";) What happens if you fill in the missing quote? Actually, I think you need to take all quotes out. I'm not much on macros, so I can never quite remember. Quote
Lee Mac Posted June 2, 2011 Posted June 2, 2011 Try this: ^C^C^P$M=$(if,$(eq,$(getvar,clayer),[color=red]layername[/color]),_layer _On [color=red]layername [/color],_layer _Off [color=red]layername [/color]) Where layername is the name of the layer to be switched on if its the current layer, else off. Quote
jmyrwen Posted June 2, 2011 Author Posted June 2, 2011 thanks Lee, but it has no return, only layer off Quote
jmyrwen Posted June 2, 2011 Author Posted June 2, 2011 what i want is same concept as ^C^C^P$M=$(if,$(=,$(getvar,cvport),1),mspace,pspace) but for specific layer, is it possible? Quote
jmyrwen Posted June 2, 2011 Author Posted June 2, 2011 oh i see, but all i have is Autocad LT 2011, anyway thanks alot Quote
irondog Posted June 3, 2011 Posted June 3, 2011 This may operate by one click or two clicks. I don't know Recent AUTOCADLT Version. But I think that it is impossible to operate completely by one click. ^c^c^P$m=$(nth,$(getvar,useri5),-layer;on;layername;;useri5;1,expert;1;-layer;off;layername;;expert;0;useri5;0) Long long time has passed since I used English last. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.