Adds a user defined custom property to the setup user defined structure and analysis groups.
Supported Product: FDTD, MODE, DEVICE
adduserprop("property name", type, value);
Adds a user property to a selected structure group. The name is set to "property name". The type is an integer from 0 to 5. The corresponding variable types are
The value of the user property is set to value.
Create a structure group. Add a user property named "radius" and set up the script in the structure group to add two circles to the group and set their radius to the value of the user property "radius". Note that the myscript string uses the escape character \n for new line and \" for double quotes within the string.
myscript = "addcircle; \n";
myscript = myscript + "copy(1e-6); \n";
myscript = myscript + "selectall; \n";
myscript = myscript + "set(\"radius\",radius);";
An example for analysis group
myscript =" #begin
y_span = %y span%;