GetAuxOrigin() in v6 python

39 views
Skip to first unread message

Lev Lev

unread,
Oct 10, 2022, 3:04:45 PM10/10/22
to KiCad Developers
Dear developers,


I'm trying to port my plotting python script to v6. I'm missing the GetAuxOrigin() method from the board class.

Do you know how to get this?

I need a wxpoint type for offset to the

drlwriter.SetOptions( mirror, minimalHeader, offset, mergeNPTH )

call.

offset = bord.GetPosition()

does something, but this is not what I wanted; the drill files will have some offset I don't want.

I can set the offset manually by issuing

offset = wxPointMM(100,100)

but I want this to be automatically detected.

Moreover, I want my XY data to be relative to the aux_axis_origin.

Any help are welcome.


Thanks,
Lev

Seth Hillbrand

unread,
Oct 10, 2022, 3:30:30 PM10/10/22
to dev...@kicad.org
That lives in the BOARD_DESIGN_SETTINGS class now.  Use `BOARD.DesignSettings()` to get the structure.  Then you can call `GetAuxOrigin/SetAuxOrigin`

Regards,
Seth



--
You received this message because you are subscribed to the Google Groups "KiCad Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to devlist+u...@kicad.org.
To view this discussion on the web visit https://groups.google.com/a/kicad.org/d/msgid/devlist/f09617c3-583f-4ff6-9032-02c315b1412dn%40kicad.org.


--
KiCad Services Corporation Logo
Seth Hillbrand
Lead Developer
+1-530-302-5483
Long Beach, CA
www.kipro-pcb.com    in...@kipro-pcb.com

Levente

unread,
Oct 10, 2022, 4:07:41 PM10/10/22
to dev...@kicad.org, Seth Hillbrand
Dear Seth,



Thank you very much, it helped!



Bests,
Levente


On 10/10/22 21:30, Seth Hillbrand wrote:
> That lives in the BOARD_DESIGN_SETTINGS class now.  Use
> `BOARD.DesignSettings()` to get the structure.  Then you can call
> `GetAuxOrigin/SetAuxOrigin`
>
> Regards,
> Seth


--
Levente Kovacs
Senior Electronic Engineer

W: http://levente.logonex.eu
Reply all
Reply to author
Forward
0 new messages