Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Abett on August 30, 2018, 11:52:08 pm

Title: VBScript view variable contents
Post by: Abett on August 30, 2018, 11:52:08 pm
I've created a variable within a script and I wish to be able to view the information stored under that variable, is there a way to do that?
Title: Re: VBScript view variable contents
Post by: Geert Bellekens on August 31, 2018, 02:23:05 am
If you debug the script you can use the "Local Variables" window to inspect these.

Alternative is to print them using Session.Output

Geert
Title: Re: VBScript view variable contents
Post by: David Rains (bioform) on September 03, 2018, 09:41:21 am
And if you need that value within your model, you could store that it in a tagged value associated with the element or association it has some context to...

I often use tagged value as containers for metadata that is derived via scripts an example might be the "completeness of the specification" of one of my elements... (say from a scale of -1 to 4 or an enumeration of n/a, not started, incomplete, acceptable, completed; then using a shape-script altering the elements color or other adornment visually to indicate the status...)