Re: [Kicad-developers] How to get bounding box of all items on a schematic page

2020-08-06 Thread Seth Hillbrand
Assuming that you are working on the master branch, you would iterate over all items in the schematic SCH_SCREEN's RTree and join their boxes. Something like this: EDA_RECT bbox; for( EDA_ITEM* item : GetScreen()->Items() ) bbox.Merge( item->GetBoundingBox() ); Warning: Code has not been te

[Kicad-developers] How to get bounding box of all items on a schematic page

2020-08-06 Thread pjmonty
Hi, As the subject line says, I'm trying to figure out how to get a bounding box of just the items on a schematic page.  I want all the items on the page in the bounding box, but not the page itself.     ___ Mailing list: https://launchpad.net/~kicad