Python script sheet position?

Hi everyone,

is there a way to get the sheet top left position in a script ?

self.board = pcbnew.GetBoard()

design_settings = self.board.GetDesignSettings()
        
sheet_position = design_settings.GetSheetPosition()
sheet_size = design_settings.GetSheetSize()

self.x = sheet_position.x - (sheet_size.x / 2)
self.y = sheet_position.y - (sheet_size.y / 2)

this does not seem to work
thqnks for your help

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