How do I access ExtAPI from Project Scope?

Vishnu
Vishnu Member, Employee Posts: 221
100 Comments 100 Likes Name Dropper First Anniversary
✭✭✭✭
edited June 2023 in Structures

How do I access ExtAPI from Project Scope?

Tagged:

Answers

  • Vishnu
    Vishnu Member, Employee Posts: 221
    100 Comments 100 Likes Name Dropper First Anniversary
    ✭✭✭✭
    Answer ✓

    import clr

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

    import Ansys.ACT.Core

    appAPI = Ansys.ACT.Core.ApplicationRepository.GetApplication("Project")

    ExtAPI = appAPI.GetExtensionApi(None)