Jump to content

laydel macro for $audit-bad-layer


designerstuart

Recommended Posts

hi all

 

is there a reason that the $ cannot be used in a macro? I am trying to make a button which audits twice, then deletes the layer called $audit-bad-layer. when I type it in (using command -LAYDEL it works, but putting it in a macro seems to make it stall at the $.

 

tried putting name in "" quotes, doesn't work either. alternative suggestions?

 

thanks!

Link to comment
Share on other sites

I'm not aware of any logical reason why that character would fail in a macro. So frustrating to find these brick walls hey.

 

As far as I know the * character does not work in the -laydel command. It returns "Invalid Layer Name".

 

As soon as I read the OP I hoped the * wildcard would solve it.

Link to comment
Share on other sites

$ is a special character in macro language, it usually lets autocad know that a diesel expression is following.

Link to comment
Share on other sites

Change the layer name to not have the $ in it. Like Steven said, $ is used to identify a diesel function so if it is put in the macro it will expect a diesel function. Since you don't have a diesel function it wont do anything but sit there.

Link to comment
Share on other sites

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