Ansys Learning Forum Forums Discuss Simulation Photonics How to add script to structure group in script Reply To: How to add script to structure group in script

mwhitby
Subscriber
My main goal is to script the whole program in the master file so that I can run it in a loop to update some parameters. I think I may need to put the script in the master file in order for the loops to run and update the structures with the new parameters each time (I have built in some ways to ensure the geometry is valid from the new parameters). If I wanted to do this how would I go about it?
Originally I tried:
addstructuregroup;
set("name","strt_wvg");
deleteall;
then posted all of my script here with no special anything.

However, after I ran the code and checked in the edit box I did not see the script there and I got errors from running the script. Then I tried to put the script into a set command but that didn't work either. Do you have any suggestions on how to get this to work? Thank you!