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

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: 467
    100 Answers 250 Likes 100 Comments Second Anniversary
    ✭✭✭✭

    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
    **

    thanks @Ayush Kumar for the reply.