simulation: Set current directory to project before run custom simulator

Bug #1786128 reported by NhatKhai
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
KiCad
Won't Fix
Undecided
Unassigned

Bug Description

Hi,
  I'm using ngpsice, and use to run it from the netlist generator with specified command, and the "Run" button. However, I found that the ngspice tool do not understand windows system absolute file path that automatically send by KiCad. So I found my work around is that start KiCad from the current project folder, so that the eeschema will start the ngpsice from current project path, and I can pass it just only the netlist filename (relative path) to have it work everytime.

  So it would be nice, if the "Run" button from netlist generation automatically adjust current folder to project and pass relative path of generated netlist file to ngspice/any sim. before run would be nice.

Application: kicad
Version: (5.0.0), 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
    OpenCASCADE Community Edition: 6.8.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=OFF
    BUILD_GITHUB_PLUGIN=ON
    KICAD_USE_OCE=ON
    KICAD_USE_OCC=OFF
    KICAD_SPICE=ON

tags: added: eeschema ngspice
tags: added: export
Revision history for this message
Nick Østergaard (nickoe) wrote :

What is the spice commandline you use?

Revision history for this message
Jeff Young (jeyjey) wrote :

Running spice from the export netlist dialog is no longer supported.

Changed in kicad:
milestone: none → 6.0.0-rc1
status: New → Won't Fix
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.