0 Members and 1 Guest are viewing this topic.
Chapter 5 -- Using DIESEL—String Expression Language Catalog of DIESEL String Functions evalPasses the string str to the DIESEL evaluator and returns the result of evaluating it.$(eval, str)
Reply From: Gibbs, AubrieDate: Dec/02/03 - 09:04 (GMT) Re: layer pick with spacesMatt,The trouble is that you need to put double quotes around the layer namebut not have them evaluated by the diesel interpreter. Use setenv at thecommand line to create a double quote variable that you can use in thesesituations, i.e.setenvdqt"Then change the macro to...^C^Cundo;mark;_setenv;oldlayer;$M=$(getenv,dqt)$(getvar,clayer)$(geten v,dqt);_ai_molc;\"-layer;set;$M=$(getenv,oldlayer);Off;$(getenv,dqt)$(getvar ,clayer)$(getenv,dqt)";;I'm quoting the old layer name in case it has spaces as well. Also, Ihad to remove the extra third "$M=" since it would cause the dieselinterpreter to evaluate the double quotes we are trying to keep!Aubrie
Is there any other way besides ""?
Quote from: VerticalMojoIs there any other way besides ""?Change the filename of the block -> PneumaticWithPositionerOther than that, I dunno...I'll have to play around a bit.
Or maybe Pneumatic_W_Positioner... Im thinking of going through our blocks and file names and changing the spaces to underscores becuase it just makes it so much smoother....... Its just gonna take awhile