def get_fixed_pos(self): if self.mode.lower() == 'ul': ul_relative = Point(0, 0) elif self.mode.lower() == 'pin1': ul_relative = self.boundingBox.ul - self['1'].pad.center elif self.mode.lower() == 'center': comp_center = Point.wrap(self.module._obj.GetCenter()) ul_relative = self.boundingBox.ul - comp_center else: raise Exception('Unimplemented positioning mode.') return self.position + ul_relative
def center(self): return Point.wrap(self._obj.GetCenter())
def center(self): """Via center""" return Point.wrap(self._obj.GetCenter())
def end(self): return Point.wrap(self._obj.GetEnd())
def start(self): return Point.wrap(self._obj.GetStart())
def position(self): return Point.wrap(self._obj.GetPosition())