Thanks anyway,<br>I tried it but as you already know it did not work.<br>I think I will go for a solution outside pstricks, i.e. use some simple<br>pre-processor to replace my variables with numerical values in the <br>pstricks code. 
<br><br>Do you know if anyone has written such a pre-processor?<br>I should not be difficult and I will do it myself if if does not <br>already exist.<br><br>Best regards,<br>Johan<br><br><br><div><span class="gmail_quote">
2007/12/29, Alan Ristow &lt;<a href="mailto:ristow@ece.gatech.edu">ristow@ece.gatech.edu</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Herbert Voss wrote:<br>&gt; Johan Ekh schrieb:<br>&gt;&gt; Hi all,<br>&gt;&gt; I try to create a parameterized illustration, i.e. a picture that can be<br>&gt;&gt; completely<br>&gt;&gt; modified by changing the numerical values of some user defined parameters.
<br>&gt;&gt; I&#39;d like to use constructs such as<br>&gt;&gt;<br>&gt;&gt; \def\var1{174.2 6.5 sub 2 div }<br>&gt;&gt; \multido{\n=0.0+22.5}{16}{%<br>&gt;&gt; \uput{\var1}[\n](4,4){\psdot[dotsize=0.2](0,0)}}<br>&gt;&gt;<br>
&gt;&gt; but I get an error when running latex.<br>&gt;&gt;<br>&gt;&gt; Is it possible to do something like this in pstricks?<br>&gt;<br>&gt; no, not in this case. The parameter is read as a value with<br>&gt; a unit before it is passed to PostScript.
<br><br>Whoops! I remembered that argument as angle, not a length -- I guess<br>that&#39;s what I get for responding in a hurry with untested code. Sorry....<br><br>Alan<br><br>_______________________________________________
<br>pstricks mailing list<br><a href="mailto:pstricks@tug.org">pstricks@tug.org</a><br><a href="http://tug.org/mailman/listinfo/pstricks">http://tug.org/mailman/listinfo/pstricks</a><br></blockquote></div><br>