Book a Demo

Author Topic: Script to extract data from a diagram in EA  (Read 3577 times)

Ferry

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Script to extract data from a diagram in EA
« on: September 16, 2009, 06:32:24 am »
I am newbie to EA. Can someone tell me is there anyway that we can use a script (JAVAScript or VBScript) to extract some data from some elements in a diagram in EA? Any help would be geeatly appreciated.

mrf

  • EA User
  • **
  • Posts: 311
  • Karma: +0/-0
    • View Profile
Re: Script to extract data from a diagram in EA
« Reply #1 on: September 16, 2009, 08:37:54 am »
If you've got a recent build of EA, have a look at the Scripting window (View | Scripting from the main menu). Under the section Local Scripts there are examples for performing various tasks in both JScript and VBScript.

The two that may interest you in particular are

* VBScript - Manage Diagrams Example
* JScript - Manage Diagrams Example

Both of these examples show how to access a diagram, and the diagram objects contained within. They also provide links to the relevant apis if you wish to extend them.
Best Regards,

Michael

[email protected]
"It is more complicated than you think." - RFC 1925, Section 2.8