Book a Demo

Author Topic: Importing source file-API  (Read 2872 times)

Tafros

  • EA User
  • **
  • Posts: 25
  • Karma: +1/-0
    • View Profile
Importing source file-API
« on: May 10, 2023, 04:37:32 pm »
I'm trying to import a source file of any language to EA programmatically. Is there any API call to achieve this?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Importing source file-API
« Reply #1 on: May 10, 2023, 05:31:21 pm »
Yes, the Project Interface does this: https://sparxsystems.com/enterprise_architect_user_guide/16.1/add-ins___scripting/project_2.html

See methods

- ImportDirectory
- ImportFile

Geert

Tafros

  • EA User
  • **
  • Posts: 25
  • Karma: +1/-0
    • View Profile
Re: Importing source file-API
« Reply #2 on: May 10, 2023, 06:23:48 pm »
Thanks a lot  :)