Jump to content

Recommended Posts

Posted

i have this code but it is not working:(

 

 

^C^C^P$M=$(if,$(=,$(getvar,clayer),layer _ON "layername";,layer _Off layername";)

Posted

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.

Posted
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.

Posted

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.

Posted

thanks Lee, but it has no return, only layer off

Posted

what i want is same concept as

^C^C^P$M=$(if,$(=,$(getvar,cvport),1),mspace,pspace)

but for specific layer, is it possible?

Posted

yes sir :), for specific layer

Posted

oh i see, but all i have is Autocad LT 2011, anyway thanks alot :)

Posted

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.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...