Menu

No Module named MSDN

2018-11-20
2019-06-21
  • Krishnakumar A J

    Hi Team,
    I am getting error! when i am writing Python Script
    Script: from Microsoft.MSDN.Samples.GraphicsObjects import *
    Importerror:No module named MSDN

    I have VS2017 in my Desktop. please hekp me to resolve this issue

    Thanks

     
  • Krishnakumar A J

    hey team, any help on this issue

     
  • Daniel Medeiros

    Daniel Medeiros - 2018-11-21

    what are you trying to do and what is the DWSIM version you're running?

     
  • Krishnakumar A J

    Hi Daniel,
    I am unable to add a material stream using following script> not sure what is going wrong here. Can you please help me with this. I need to build a model of combustion reactor.
    "import clr
    import DWSIM
    from Microsoft.MSDN.Samples.GraphicObjects import *

    add a material stream to the flowsheet

    Flowsheet.FormSurface.AddObjectToSurface(TipoObjeto.MaterialStream,20,20,"MAT-000")

    add a valve to the flowsheet

    Flowsheet.FormSurface.AddObjectToSurface(TipoObjeto.Valve,50,20,"VALV-000")

    remove the 'MAT-000' object from the flowsheet

    Flowsheet.DeleteObject("MAT-000")

    remove the 'VALV-000' object from the flowsheet

    Flowsheet.DeleteObject("VALV-000")

     
  • Daniel Medeiros

    Daniel Medeiros - 2018-11-22

    Forget about this tutorial on the website. It is only for DWSIM v3, as stated on the page header. Check the included samples on DWSIM for hydrocyclone, membrane and LNG exchanger for a more updated script.

     
  • Krishnakumar A J

    Thanks Lot ! Daniel. This software is interesting

     
  • Nishit Gupta

    Nishit Gupta - 2019-06-21

    Daniel can you share the link for the above said samples

     
    • Daniel Medeiros

      Daniel Medeiros - 2019-06-21

      The samples are included with DWSIM, read my last answer.

       
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.