How to call csharp from Ansys plugin(IRON PYHTON) .

Options

Is it possible to call c# from IRON Python plugin. If yes kindly share the details.

Answers

  • Ayush Kumar
    Ayush Kumar Member, Moderator, Employee Posts: 409
    First Anniversary Ansys Employee Solution Developer Community of Practice Member First Answer
    Options

    Hi Karthik,

    you can compile your C# code in dlls and import them in IronPython using clr

    import clr
    
    clr.AddReference("Ansys.ACT.Core")
    
    import Ansys.ACT.Core
    


  • karthik
    karthik Member Posts: 6
    Name Dropper First Comment
    Options

    thanks @Ayush Kumar for the reply.