Wish: pcbnew python acces to 3D settings of a module

Bug #1758858 reported by Mitja Nemec
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Wishlist
Andrew Lutsenko

Bug Description

As it is today one can not access the 3D settings of a module via python interface.

pcbnew.MODULE.Modules() method returns std::list of MODULE_3D_SETTINGS objects, but I can not access each member of this list or even iterate over it from python.

Adding an iterator so that the 3D settings behave similar to modules, pads and other pcbnew objects would be phenomenal.

Tags: python
Revision history for this message
Nick Østergaard (nickoe) wrote :

Please add version info.

tags: added: python
Revision history for this message
Mitja Nemec (mitjan) wrote :

Sorry about that.

Application: kicad
Version: (5.0.0-rc2-dev-206-ge4d512a29), release build
Libraries:
    wxWidgets 3.0.3
    libcurl/7.54.1 OpenSSL/1.0.2l zlib/1.2.11 libssh2/1.8.0 nghttp2/1.23.1 librtmp/2.3
Platform: Windows 7 (build 7601, Service Pack 1), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
    wxWidgets: 3.0.3 (wchar_t,wx containers,compatible with 2.8)
    Boost: 1.60.0
    Curl: 7.54.1
    Compiler: GCC 7.1.0 with C++ ABI 1011

Build settings:
    USE_WX_GRAPHICS_CONTEXT=OFF
    USE_WX_OVERLAY=OFF
    KICAD_SCRIPTING=ON
    KICAD_SCRIPTING_MODULES=ON
    KICAD_SCRIPTING_WXPYTHON=ON
    KICAD_SCRIPTING_ACTION_MENU=ON
    BUILD_GITHUB_PLUGIN=ON
    KICAD_USE_OCE=ON
    KICAD_SPICE=ON

Jeff Young (jeyjey)
Changed in kicad:
importance: Undecided → Wishlist
Revision history for this message
KiCad Janitor (kicad-janitor) wrote :

Fixed in revision c68ad411ff9c89aafb90920bcbedd3cd2509924e
https://git.launchpad.net/kicad/patch/?id=c68ad411ff9c89aafb90920bcbedd3cd2509924e

Changed in kicad:
status: New → Fix Committed
assignee: nobody → Andrew Lutsenko (qu1ck)
Changed in kicad:
status: Fix Committed → Triaged
milestone: none → 5.1.0
Revision history for this message
Wayne Stambaugh (stambaughw) wrote :

Version 5.1 is in feature freeze. Moving to 6.0.0 milestone.

Changed in kicad:
milestone: 5.1.0 → 6.0.0-rc1
Revision history for this message
Andrew Lutsenko (qu1ck) wrote :

I think milestone for this bug was moved by mistake, fix is already commited to dev branch, it will go into 5.1.

Changed in kicad:
status: Triaged → Fix Committed
Andrew Lutsenko (qu1ck)
Changed in kicad:
status: Fix Committed → Fix Released
Revision history for this message
Michael Kavanagh (michaelkavanagh) wrote :

This was released in 5.1.0.

Changed in kicad:
milestone: 6.0.0-rc1 → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.