1 # Class definitions of Sketch features
3 from GeomDataAPI import geomDataAPI_Point2D
7 def __init__(self, sketch, x, y):
8 self.my = sketch.addFeature("SketchPoint")
9 geomDataAPI_Point2D( self.my.data().attribute("PointCoordindates") ).setValue(x, y)
13 return geomDataAPI_Point2D( self.my.data().attribute("PointCoordindates") )
16 return self.my.firstResult()