AdaptEaVbScript - Helmut-Ortmann/EnterpriseArchitect_ScriptDotNet GitHub Wiki

Adapt EA VB Scripts

Create an EA Vb Script to adapt it with a little glue-code:

  • Include: !INC ScriptDotNet.RunCommandVb
  • Glue to your code: runCommand "%EA_SCRIPT_HOME%ScriptCSharp.exe", "TraversePackage",guid, ""

The beauty is that EA uses templates and you have to fill in three lines or so.

Include !INC ScriptDotNet.RunCommandVb

Just insert the line.

Include !INC ScriptDotNet.RunCommandVb

Glue to ScriptCSharp.exe

Glue Code

Example

dim thePackage as EA.Package
set thePackage = Repository.GetTreeSelectedObject()
runCommand "%EA_SCRIPT_HOME%ScriptCSharp.exe", "TraversePackage", thePackage.PackageGUID, ""

Glossary

  • VS Visual Studio 2017

References