← Back to team overview

kicad-developers team mailing list archive

Re: Python scripting - Zone/Area manager

 

In response to a message written on 06.11.2014 10:58, from jp charras:
ZONE_CONTAINER::Outline() returns m_Poly, which is a pointer to a
CPolyLine, which contains polygons (zone outlines: main outline and holes)
-- Jean-Pierre CHARRAS

Thanks for info, but I have no idea, what I can make with
 "<Swig Object of type 'CPolyLine *' at 0x7f08ee3d1630>".
Provided python methods of this are:
>>> zone=pcb.GetArea(0)
>>> ol=zone.Outline()
>>> for strAttr in dir(ol):
...     _attr = getattr(ol, strAttr)
...     if callable(_attr):
...         print("ol.%s()" % strAttr)
...
ol.__class__()
ol.__cmp__()
ol.__delattr__()
ol.__eq__()
ol.__format__()
ol.__ge__()
ol.__getattribute__()
ol.__gt__()
ol.__hash__()
ol.__hex__()
ol.__init__()
ol.__int__()
ol.__le__()
ol.__long__()
ol.__lt__()
ol.__ne__()
ol.__new__()
ol.__oct__()
ol.__reduce__()
ol.__reduce_ex__()
ol.__repr__()
ol.__setattr__()
ol.__sizeof__()
ol.__str__()
ol.__subclasshook__()
ol.acquire()
ol.append()
ol.disown()
ol.next()
ol.own()

I've read this:
http://www.swig.org/Doc1.3/Python.html#Python_nn55
But I'm not so familiar with C++
--
Best Regards,
LordBlick


Follow ups

References