Pcbnew python page info

I would like to know the page settings in a python script - the current page size or its dimensions. There is a function


which returns: Swig Object of type 'PAGE_INFO *'

Now, how can I get its content to know the page size?


As far as I can tell PAGE_INFO class is not exposed through SWIG to python API. But my C++ knowledge is minimal at best. @qu1ck might be able to shed more light on this.

That’s correct, PAGE_INFO is not exposed to python right now so you can’t read that object (well not without some nasty hacks). You can open a feature request on gitlab to have that class added to python interface. But be prepared to provide a good use case for why you need it.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.