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
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
2 matches
Mail list logo