I am revising a macro script to thaw a group of layers.
Main layer group is: F1*
X-Ref group is: *|F1*
Bound X-Ref group is: *$F1* (...$0$F1...)
This is what happens when the third item is added:
Enter name list of layer(s) to thaw: f1*,*|f1*,* Enter an option [?/Make/Set/New/Rename/ON/OFF/Color/Ltype/ LWeight/TRansparency/MATerial/Plot/Freeze/Thaw/LOck/Unlock/ stAte/Description/rEconcile]:
How do I escape the "$" character?
I have tried *0$F1*, *\$F1* and *`$F1* without success.
R2014
Scot-65
Scot-65
A gift of extraordinary Common Sense does not require an Acronym Suffix to be added to my given name.
Solved! Go to Solution.
Solved by hmsilva. Go to Solution.
@scot-65 wrote:
...
How do I escape the "$" character?
I have tried *0$F1*, *\$F1* and *`$F1* without success.
...
Hi Scot,
the *`$F1* works here...
Command: (command "-layer" "_F" "*|*,*`$F1*" "" "")
Command: -layer Current layer: "0" Enter an option [?/Make/Set/New/Rename/ON/OFF/Color/Ltype/LWeight/MATerial/Plot/Freeze/Thaw/LOck /Unlock/stAte/Description/rEconcile]: f Enter name list of layer(s) to freeze or <select objects>: *|*,*`$F1* Enter an option [?/Make/Set/New/Rename/ON/OFF/Color/Ltype/LWeight/MATerial/Plot/Freeze/Thaw/LOck /Unlock/stAte/Description/rEconcile]: Command:
Henrique
What you show is a LISP expression on the command line - of course it works.
I want to make the macro inside the CUI work in the same manner:
I have tried (strcat "*" (chr 36) "F1*") to no avail,
then tried (setvar 'users5 "*$F1*") and inside the macro replaced *$F1* with $(getvar,users5)
and this did not work either.
Any more hints?
Scot-65
A gift of extraordinary Common Sense does not require an Acronym Suffix to be added to my given name.
@scot-65 wrote:
What you show is a LISP expression on the command line - of course it works.
...
Sorry, I didn't understood that was a macro...
@scot-65 wrote:
...
I have tried (strcat "*" (chr 36) "F1*") to no avail,
...
It works for me...
^C^C-LAYER;F;(strcat "*|*,*" (CHR 36) "F1*");; Command: -LAYER Current layer: "0" Enter an option [?/Make/Set/New/Rename/ON/OFF/Color/Ltype/LWeight/TRansparency/MATerial/Plot/Freeze/Thaw/LOck/Unlock/stAte/Description/rEconcile]: F Enter name list of layer(s) to freeze or <select objects>: (strcat "*|*,*" (CHR 36) "F1*") "*|*,*$F1*" Enter an option [?/Make/Set/New/Rename/ON/OFF/Color/Ltype/LWeight/TRansparency/MATerial/Plot/Freeze/Thaw/LOck/Unlock/stAte/Description/rEconcile]: Command:
Thanks, I had the expression wedged between commas and not the semi-colons.
Enter name list of layer(s) to thaw: (strcat "f1*,*|f1*,*" (chr 36) "F1*,0,*****,def*") "f1*,*|f1*,*$F1*,0,*****,def*" Enter an option [?/Make/Set/New/Rename/ON/OFF/Color/Ltype/LWeight/TRansparency/MATerial/Plot/Freeze/Thaw/LOck/Unlock/stAte/Description/rEconcile]:
Edit:
(strcat "f1*,*|f1*,*" (chr 36) "F1*,0,*****,def*")
Edit #2:
Oh, I get why it does not like "title" abbreviated...
(strcat "f1*,*|f1*,*" (chr 36) "F1*,0,t i t *,def*")
Scot-65
A gift of extraordinary Common Sense does not require an Acronym Suffix to be added to my given name.