Menu

Creating .DSS files in python

Help
2022-03-02
2022-03-02
  • Chester Hall

    Chester Hall - 2022-03-02

    Hello,

    I am currently coding in python automation software to take information from an excel sheet and automatically generate an openDSS model. I have become familiar with win32.com.client for interfacing with openDSS, but I would like to be able to generate a .DSS file so that I can also open it in openDSS-G. Is there any way/example to do this?

    Thank you,

    Chester

     
    • Davis Montenegro

      Hi Chester,

      Yes, after creating the model in memory you can export it using the command "save circuit". It's something like this:

      save circuit dir="mydir"
      

      This way, whatever you have in memory will be downloaded in the form of dss files at the folder specified in "mydir".

      Best regards

      Davis

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.