MinHoleToHole cannot be R/W using pcbnew.py
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Fix Released
|
Unknown
|
Bug Description
Summary: MinHoleToHole setting in .pro file cannot be read or written using pcbnew.py
Application: kicad
Version: (5.1.2)-1, release build
Libraries:
wxWidgets 3.0.4
libcurl/7.61.1 OpenSSL/1.1.1 (WinSSL) zlib/1.2.11 brotli/1.0.6 libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.5) nghttp2/1.34.0
Platform: Windows 7 (build 7601, Service Pack 1), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
wxWidgets: 3.0.4 (wchar_t,wx containers,
Boost: 1.68.0
OpenCASCADE Community Edition: 6.9.1
Curl: 7.61.1
Compiler: GCC 8.2.0 with C++ ABI 1013
Build settings:
USE_
USE_
KICAD_
KICAD_
KICAD_
KICAD_
KICAD_
KICAD_
BUILD_
KICAD_
KICAD_
KICAD_SPICE=ON
Reproduction of bug:
Python 2.7.15 (default, Oct 11 2018, 12:09:51) [GCC 8.2.0 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from pcbnew import *
>>> brd = LoadBoard(
>>> drs = brd.GetDesignSe
>>> drs.m_HoleToHoleMin
37845792 <== I don't know where this value comes from.
>>> drs.SetMinHoleS
>>> drs.m_HoleToHoleMin
12345678 <== New hole-to-hole setting.
>>> brd.SetDesignSe
>>> brd.Save(
True
>>> brd = LoadBoard(
>>> drs = brd.GetDesignSe
>>> drs.m_HoleToHoleMin
0 <== Updated hole-to-hole setting has been lost.
>>>
This same problem affects m_RequireCourtyards and m_ProhibitOverl
The only commonality I can see is that none of these member variables have the drs.Get*()
methods (e.g. drs.GetMinHoleS
tags: | added: pcbnew python |
tags: | added: starter |
Changed in kicad: | |
importance: | Undecided → Unknown |
status: | Expired → Fix Released |
KiCad bug tracker has moved to Gitlab. This report is now available here: https:/ /gitlab. com/kicad/ code/kicad/ -/issues/ 2550