Dear community,
Recently I had a problem where I needed to retrieve all shapes within a layout (for example horizontal layout named "myLayout1").
I couldn't find any help in the documentation, so is there maybe a workaround?
When I say "retrieve all shapes" it doesn't matter, it can be shape pointers or dyn_string with all the names that match the criteria; so that with the pointers (or integers) I can access every shape within that layout.
Any suggestion would be helpful!
Best regards!
Get list of shapes inside a layout
- amichon
- Posts:93
- Joined: Sat May 17, 2014 3:49 pm
Re: Get list of shapes inside a layout
you can add the shape by script (layout.boxInsertItem(), ...) in the layout and keep a reference to this shape in a mapping in the scopelib for example.