I am posting this for anybody else who will port pcbnew python code from 6.0.x to 6.99 (7.0.x to be). Feel free to expand on this.
-
introduction of
pcbnew.VECTOR2I
. Code that previously worked withwxPoint
as an argument/return value now works withpcbnew.VECTOR2I
objects (positions, bounding boxes, …) -
introduction of
pcbnew.EDA_ANGLE
. Code that previously worked with doubles as an argument/return value for angular orientation of items now works withpcbnew.EDA_ANGLE
. Simplest solution is to convertpcbnew.EDA_ANGLE
to double viaAsDegrees()
method and useSetOrientationDegrees
method to set orientation. If this is not available you can createpcbnew.EDA_ANGLE( angle ,EDA_ANGLE_T)
whereEDA_ANGLE_T
can be eitherpcbnew.TENTHS_OF_A_DEGREE_T
orpcbnew.DEGREE_T
. -
removal of
pcbnew.EDA_RECT
. It can be substituted bypcbnew.BOX2I
.pcbnew.BOX2I
obviously works withpcbnew.VECTOR2I
instead ofwxPoint
. -
removal of
pcbnew.ZONE.IsKeepout()
. You can now usepcbnew.ZONE.GetIsRuleArea()
-
removal of
Millimeter2iu
. You can now useFromMM