Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Uffe on October 11, 2017, 02:07:00 am
-
Hi all,
In a shape script, and without resorting to an Add-In, is it possible to retrieve the parameter type for an action pin?
The problem is that the action pin is an instance type, and its classifier is the corresponding activity parameter -- not the type (classifier) of that activity parameter. And there's no classifier.classifier.type property to be retrieved.
/Uffe
-
Hi Uffe,
The type you're after is the pin's property type. You can retrieve its classifier, if it has one, using the undocumented property propertytype.type.
HTH,
/Uffe
-
Hi Uffe,
The type you're after is the pin's property type. You can retrieve its classifier, if it has one, using the undocumented property propertytype.type.
HTH,
/Uffe
auch Uffe, when you start talking to yourself that's the beginning of the end :o
Geert
-
No, no. They are actually two persons. Dr. Uffe and Mr. Hyde.
q.
-
No, no. They are actually two persons. Dr. Uffe and Mr. Hyde.
q.
I've suspected that for a while! ;D
Besides, so long as you get the right answers, talking to yourself is fine...
Paolo
-
That's an interesting side-effect of the clone element functionality... in Uffe's case we will call it a feature. In the interests of it not becoming a bug, I won't follow Uffe's procedure!