Hello,
A engineer at customer site wants to develop a script which can shorten “Safety Mechanism Collection” generation. (Normally, it take 3 steps by clicking)
The engineer developed following script based on “factory.js” which is in ESL project.
load("./.lib/factory.js");
var measure_catalog = Factory.createElement(selection[0], Metamodel.safetyModel.MeasureCatalog);
But it generates following Collection.

What the engineer would like to have is following Collection.

Let me know what script should be added to.
Thanks in advance,