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!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login