Thanks Phil. I have added the pair of quote as suggested. It turned
out stopped in the middle. Let me paste the revised code here.
^C^C_SETENV;d;\_SETENV;bf;\_SETENV;tf;\_SETENV;tw;\_SETENV;K;\_SETENV;R;$M=$(-,$(GETENV,K),$(GETENV,tf));_PLINE;\W;0;;@@0,$(GETENV,tf);@$(-,$(/,$(GETENV,bf),2),"$M=$(GETENV,R),$(/,$(GETENV,tw),2)),0;A;R;$(GETENV,R);@$(GETENV,R),$(GETENV,R);L;@0,$(-,$(/,$(GETENV,d),2),$(GETENV,tf),$(GETENV,R))";;MIRROR;LAST;;@0,0;@$(/,$(GETENV,tw),2),0;;MIRROR;LAST;;@0,0;@0,2;;MIRROR;LAST;;@0,-2;@2,0;;
The following is copied from text window with macrotrace set to 1.
Command: _SETENV
Variable name: d
Value <23.625>:
Command: _SETENV
Variable name: bf
Value <7>:
Command: _SETENV
Variable name: tf
Value <.5>:
Command: _SETENV
Variable name: tw
Value <.375>:
Command: _SETENV
Variable name: K
Value <1>: 1.5
Command: _SETENV
Variable name: R
Value <0.5>: Eval: $(-, $(GETENV,K), $(GETENV,tf))
Eval: $(GETENV, K)
===> 1.5
Eval: $(GETENV, tf)
===> .5
===> 1
Eval: $(/, $(GETENV,bf), 2)
Eval: $(GETENV, bf)
===> 7
===> 3.5
Eval: $(GETENV, tf)
===> .5
$M=_PLINE
It seems that everything inside the quotes was not evaluated. Something
I don't understand is how come the Pline comamnd was prefixed with the
"$M=". Can you take a look and help?
Regards,
Patrick Poon
Structural Steel Detailer
Phil Lacy wrote:
>
> check my site for quote help, essentially you need to quote out the getenv,R and I don't see you needing anything else to be delayed
> so just put in
> "$M=
> before the first getenv,R and then a quote (") at the end of you macro.
>
> >
> ^C^C_SETENV;d;\_SETENV;bf;\_SETENV;tf;\_SETENV;tw;\_SETENV;K;\_SETENV;R;$M=$(-,$(GETENV,K),$(GETENV,tf));_PLINE;\W;0;;@@0,$(GETENV,t
> f);@$(-,$(/,$(GETENV,bf),2),
>
> put it here
>
> "$m=$(GETENV,R),$(/,$(GETENV,tw),2)),0;A;R;$(GETENV,R);@$(GETENV,R),$(GETENV,R);L;@0,$(-,$(/,$(GETENV,d),2),$(GETENV,tf),$(GETENV,R)
> )
>
> put in th last quote any where past last getenv,r
>
> ";;MIRROR;LAST;;@0,0;@$(/,$(GETENV,tw),2),0;;MIRROR;LAST;;@0,0;@0,2;;MIRROR;LAST;;@0,-2;@2,0;;
>
> --
> /*********Phil for diesel macro language help--->
> http://www.grapevine.net/~lacy/index.html
> reverse ycal for good email