How do I access ExtAPI from Project Scope?

Vishnu
Vishnu Member, Employee Posts: 198
Name Dropper First Anniversary Solution Developer Community of Practice Member First Comment
edited June 2023 in Structures

How do I access ExtAPI from Project Scope?

Tagged:

Answers

  • Vishnu
    Vishnu Member, Employee Posts: 198
    Name Dropper First Anniversary Solution Developer Community of Practice Member First Comment
    Answer ✓

    import clr

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

    import Ansys.ACT.Core

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

    ExtAPI = appAPI.GetExtensionApi(None)