Jython command to create Instrument Particle Detector

Hello !

I would like to know if there is any possibility to create a User Instrument from a command in the Jython console, or by executing an external Python program. Indeed I have to create 190 Particle Detectors, all with different acceptance angles, for the purpose of my simulation and I wouldn’t like to create them one by one through the SPIS interface…

Thank you !


You can create the instruments xml file with an external python script and add the links to the model.xml file in the root of the project.


Hi Vincent,

Thank you for your answer ! I followed your advice and it worked perfectly indeed !

Thank you again,