Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: skranenburg on October 05, 2022, 02:03:06 am

Title: Calculations based on Tagged Values
Post by: skranenburg on October 05, 2022, 02:03:06 am
Hi,

I have a imported package in my model that has a large number of systems represented as blocks with numeric tagged values. Is it possible to use these specific values within a parametric diagram for certain calculations? I have having trouble finding a way to "pull out" these values to use them elsewhere in the model. Any help on this would be much appreciated.

Thanks!
Title: Re: Calculations based on Tagged Values
Post by: qwerty on October 05, 2022, 02:20:08 am
Use scripting and the TaggedValues collection of the according elements. That's pretty simple.

q.
Title: Re: Calculations based on Tagged Values
Post by: PeteC on October 05, 2022, 07:04:12 pm
You could also look at Scriptlets - I've not used them yet, but the claim is that they will run when a diagram is opened. It might be appropriate to make a diagram make your calculations when opened based on elements on the diagram.