In V6 I simply passed an integer of 0, 1 or 2 as an argument for PCB_PLOT_PARAMS.SetDrillMarksType( DrillMarksType aVal ), but that’s not possible in V6.99. I get the exception:
TypeError: in method ‘PCB_PLOT_PARAMS_SetDrillMarksType’, argument 2 of type ‘DRILL_MARKS’
I cannot figure out what to set as an argument instead. Feels like I’ve tried everything.
plot_options.SetDrillMarksType(pcbnew.PCB_PLOT_PARAMS.FULL_DRILL_SHAPE) gives me the error:
AttributeError: type object ‘PCB_PLOT_PARAMS’ has no attribute ‘FULL_DRILL_SHAPE’
Same with:
plot_options.SetDrillMarksType(pcbnew.PCB_PLOT_PARAMS.DRILL_MARKS.FULL_DRILL_SHAPE)
And with:
plot_options.SetDrillMarksType(pcbnew.DRILL_MARKS.FULL_DRILL_SHAPE)
I’ve tried looking in the source code to figure out how to use the DRILL_MARKS enum, but I’m really not a software developer and I cannot figure out which class it belongs to.
Yea, this was even quicker (pun intended) than usual. I didn’t even have to report a bug. I will test it layer today, as soon as it’s included in a nightly build for windows. I don’t have the environment set up for compiling KiCad atm.
I’ve installed todays nightly build which should contain this fix. It’s built from commit aa537fe5, one commit after this fix (25688eb7).
But I’m still unable to use this enum. Probably because I don’t have a clue what I’m doing when I don’t have the Doxygen docs to look up things.
I’ve tried these without any luck:
pcbnew.DRILL_MARKS.FULL_DRILL_SHAPE
pcbnew.PCB_PLOT_PARAMS.FULL_DRILL_SHAPE
pcbnew.PCB_PLOT_PARAMS.DRILL_MARKS.FULL_DRILL_SHAPE