The Ansys Innovation Space website recently experienced a database corruption issue. While service has been restored there appears to have been some data loss from November 13. We are still investigating and apologize for any issues our users may have as a result.

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

Guilin Sun
Ansys Employee
Usually you can either directly modify an existing structure group, or write new script in the master file. Seldom people amend the script in the structure every time you run the master file. While it seems easier using scripting, I personally prefer to directly use/modify the structure group, manually check the material fittings and also make sure the structure is what you expect. There are chances that some structure/settings are not complete and it might be difficult to find the issue. When you have hundreds of line, maintaining it can also be challenge.

Please refer some examples:
addstructuregroup - Script command
adduserprop - Script command
Structure Groups - Simulation object