<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I'm getting repeated IDs using Duplicata. Here's the relevant
excerpt from my script:<br>
<code> <br>
Plane Surface(11) = {9, 10};<br>
Plane Surface(12) = {10};<br>
fuel_surfaces[] = {};<br>
moder_surfaces[] = {};<br>
For xtrans In {0:108:12}<br>
For ytrans In {0:108:12}<br>
new_f_surface = Translate {xtrans, ytrans, 0} {<br>
Duplicata { Surface{11}; }<br>
};<br>
fuel_surfaces += new_f_surface;<br>
new_m_surface = Translate {xtrans, ytrans, 0} {<br>
Duplicata { Surface{12}; }<br>
};<br>
moder_surfaces += new_m_surface;<br>
Printf("New f surface '%g'", new_f_surface);<br>
Printf("New m surface '%g'", new_m_surface);<br>
EndFor<br>
EndFor<br>
<br>
</code> And here's the beginning of the output:<br>
<code> <br>
New f surface '13'<br>
New m surface '13'<br>
New f surface '13'<br>
New m surface '22'<br>
New f surface '23'<br>
New m surface '32'<br>
New f surface '33'<br>
New m surface '42'<br>
<br>
</code> How do I ensure that everything has a unique ID?<br>
</body>
</html>