Get list of shapes inside a layout

Find and share HowTos to various installations / configurations!
2 posts • Page 1 of 1
denisisakovic
Posts:23
Joined: Fri May 08, 2020 10:32 am

Get list of shapes inside a layout

Post by denisisakovic »

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!

amichon
Posts:93
Joined: Sat May 17, 2014 3:49 pm

Re: Get list of shapes inside a layout

Post by amichon »

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.

2 posts • Page 1 of 1