Jan Mrázek
f601c87cea
Export UNITS_PROVIDE into SWIG
3 years ago
jean-pierre charras
abff7975f1
Python scripting: fix some issues when trying to create a DRC Report:
- avoid aborting the DRC report on a .dru issue without any error message.
- ensure the list of layer names is up to date (contains both canonical
and user layers names, that can be used in DRC tests.
Fixes #11410
https://gitlab.com/kicad/code/kicad/issues/11410
3 years ago
jean-pierre charras
6c73fe05e9
python scripting: better fix for commit 5a79821 (fix crash due to a null pointer):
Try to use a better error message for severity.
Fixes #13160
https://gitlab.com/kicad/code/kicad/issues/13160
3 years ago
Jan Mrázek
90fb315113
Add missing text alignment types to SWIG export
Fixes https://gitlab.com/kicad/code/kicad/issues/13174
3 years ago
Jan Mrázek
e699c25d98
Add operators for the SWIG wrapper of EDA_ANGLE
3 years ago
Jan Mrázek
66c2462c7e
Eliminate angle as double in SWIG wrapper
Fixes https://gitlab.com/kicad/code/kicad/issues/13171
3 years ago
jean-pierre charras
5a7982161d
python scripting: fix crash due to a null pointer use.
Fixes #13160
https://gitlab.com/kicad/code/kicad/issues/13160
3 years ago
Yang sheng
aff5245041
Fix enum class DRILL_MARKS no export to python
3 years ago
qu1ck
25688eb75e
Include plotprint_opts.h in swig
3 years ago
Jeff Young
97fd99ec99
Re-resolve netclasses after assigning netclass to pattern.
Fixes https://gitlab.com/kicad/code/kicad/issues/12965
3 years ago
Marek Roszko
cd30da179a
Round out the cli with position file export
3 years ago
Jeff Young
64a6fc0fd4
Push UNITS_PROVIDER down into a low-level mixin.
This allows us to also construct cheap UNIT_PROVIDERs for specific
tasks when necessary.
3 years ago
jean-pierre charras
97963a2bba
Better after base_units.cpp changes in python stuff.
Move an include to kicad.i
3 years ago
jean-pierre charras
71bb7d63d9
Fix isses after base_units.cpp changes.
3 years ago
Marek Roszko
1e0eca0916
Eyeball swig fix after the units changes
3 years ago
Marek Roszko
3d5913c825
Remove convert_to_biu.h, merge contents to base_units.h
3 years ago
Marek Roszko
7a5829f8d6
Move IU2Mils
3 years ago
Marek Roszko
e6ed275c25
Repoint IU_PER_MILS
3 years ago
Mark Roszko
b00178adb3
Nuke base_units from orbit
3 years ago
Jeff Young
77c79b6f6a
Apply searchArea architecture to courtyard functions.
3 years ago
Jeff Young
f99761e5bd
entirelyInsideArea() prototype.
3 years ago
Seth Hillbrand
e4bb1560c5
Set locale in python save routine
Fixes https://gitlab.com/kicad/code/kicad/issues/11006
(cherry picked from commit c3496d61eb )
3 years ago
Seth Hillbrand
af34835fdf
Restore removed data
Functions and definitions used in Python scripting should not be
removed. Comments in header files should never be removed (only
updated/corrected)
3 years ago
Jeff Young
8b0efa8ac4
A bit of cleanup from last commit.
3 years ago
Jeff Young
aa2ad3b44c
Move KICAD_T[] to std::initializer_list<KICAD_T>.
3 years ago
Jeff Young
1f347582f8
Introduce new marker type so we can track DRC errors on the drawing sheet.
Fixes https://gitlab.com/kicad/code/kicad/issues/12221
3 years ago
Jeff Young
a9536b5de9
CHANGED netclass assignments now done via canvas or via patterns.
3 years ago
jean-pierre charras
4d48376eae
Fix some warnings detected by PVS-STUDIO (not used vars)
3 years ago
Mike Williams
3669cb4673
PCB Editor: Add User Background Images
4 years ago
luz paz
af6ba1a16e
Fix typos in pcbnew sub-directory
Found via `codespell -q 3 -S *.po,./thirdparty,./Documentation/changelogs -L aactual,acount,aline,alocation,alog,anormal,anumber,aother,apoints,aparent,aray,ba,busses,dout,einstance,leaded,modul,ontext,ot,overide,serie,te,,tesselate,tesselator,tht`
3 years ago
Seth Hillbrand
802745398a
Python add param to change UUIDs on fp load
By default, we load all footprints with a new UUID set to allow them to
be added to the board as unique objects. But when editing footprints,
we want to maintain the same UUID.
Fixes https://gitlab.com/kicad/code/kicad/issues/11870
3 years ago
Seth Hillbrand
f1a054e6af
Correct SWIG call for board design settings
Use the backend call rather than rely on the naming of internal
variables
Fixes https://gitlab.com/kicad/code/kicad/issues/11924
(cherry picked from commit 9cebea5f11 )
3 years ago
Seth Hillbrand
8418fe12d8
Allow board saves without modifying project files
Without the project files, certain settings will not be saved by this
python call. This defaults to false (current behavior) but setting the
`aSkipSettings` to true will revert to v5 behavior
Fixes https://gitlab.com/kicad/code/kicad/issues/11323
3 years ago
jean-pierre charras
6679decc8d
Fix syntax issues in footprint wizards
Fixes #11867
https://gitlab.com/kicad/code/kicad/issues/11867
3 years ago
Jeff Young
97b0005780
More caching for DRC.
Also fixes a bug where some physical clearance tests would be run even
if the clearance was 0 (or if the rule was set to IGNORE).
3 years ago
qu1ck
13bece06cf
Fix swig wrapper for footprint 3d models
3 years ago
jean-pierre charras
e54ba87895
fix FootprintWizardBase.py compatibility with recent code.
3 years ago
jean-pierre charras
0177613ad3
footprint wizard touch_slider_wizard.py: fix compatibility with current code.
4 years ago
Frank Zeeman
b3a319b77e
Append True to Python 3 AddPrimitivePoly() call
Fixes https://gitlab.com/kicad/code/kicad/issues/11012
4 years ago
jean-pierre charras
54c9e36556
Python, board.i: fix incorrect order of an include.
The result was ignoring PCB_SHAPE in pcb_text.i.
4 years ago
jean-pierre charras
e37bb2e0c3
swig: disable a few warnings generated by pcb_shape.i, math.i and version.i
4 years ago
Jon Evans
cb6d6d7ef4
Settings: allow multiple project access from Python standalone
We can't handle this in the UI, but we can externally, so allow
it for Python scripting and eventually we'll use this in the UI
also...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/10540
(cherry picked from commit 1394509734 )
4 years ago
jean-pierre charras
69453964b4
pcbnew_scripting_helpers: fix a potential crash when running a script outside kicad.
BOARD* LoadBoard( wxString& aFileName, IO_MGR::PCB_FILE_T aFormat ) crashes if a
old project file (*.pro) exists and the *.kicad_pro file doses not exists.
The crash happens when trying to convert the old config outside kicad.
4 years ago
Jeff Young
bc51c89c90
Reconcile zone-auto-fill with undo.
4 years ago
Greg Davill
429c311ec3
action_plugin: Remove duplicated entry in UndoList
4 years ago
qu1ck
b53b68c686
Fix double loading plugins and sys.path entires multiplying
4 years ago
qu1ck
a041492736
SWIG mappings for all shapes
4 years ago
木 王
261b1df47f
fix-npth
4 years ago
Jeff Young
b2e3f03222
More wide-string declarations.
4 years ago
Seth Hillbrand
917845cf00
Ensure we can version scripting properly
Adds Version() and FullVersion() calls to support reporting version to
scripts and scripting window
Fixes https://gitlab.com/kicad/code/kicad/issues/10079
(cherry picked from commit 0a13f15a9d )
4 years ago