How to put model entities into a group using Python API?
-
Hello @montanaro,
What if I already created a group? How can I get that folder to add more items to it?
Thanks!
-
group_name = "Group 1" entities = s4l.model.AllEntities() my_group = entities[group_name]
You can use this to get any element in your model, HOWEVER, unfortunately you'll run into problems if you have multiple model elements / groups with the same name, so make sure to have unique names for every top level element (don't worry about elements within groups)
-
Thanks @montanaro!