GeertBellekens / Enterprise-Architect-VBScript-Library

Library of wrappers and scripts for Enterprise Architect automation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LoadScripts.vbs refactor to allow extension points for LoadScriptBootstrap.vbs

baerrach opened this issue · comments

Use Sparx EA LOCAL PATH dialog to specify location of scripts to load.
There is no API to uses these from VB, must read the file and parse directly:
%appdata%\Sparx Systems\EA\paths.txt
(EA-Matic should share this with the save scripts location and update it)

  • refactor variables in main to global variables:
    • overwriteExisting
    • allScripts
    • allGroups
  • use global variables instead of function parameters
  • rename global variables:
    • allScripts -> allScriptsInSparxModel
    • allGroups -> allGroupsInSparxModel

Fix getScriptFromFile() to not create a new Script in the loop, it only needs to be done once