Amrita Pati
Ansys Employee

Hi Joel,

Are you using the set command in loop to set the property of each hole in lsf? If so, the set commands can be expensive. What can be done instead is define all the inputs/parameters of the structure/object in a struct and then pass this as an argument of the addcircle script command at once. This should make the code much faster. 

For example, for a circle:

param = {'name':'circ', 'x': 0e-6, 'y':0e-6, 'z':0e-6,'radius':0.2e-6,'index': 1};