Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Paolo F Cantoni on August 02, 2005, 12:38:56 pm
-
Hi,
In the automation interface, how can I get access to the Class parameters or arguments? I can detect if they exist by using the Subtype, but I can't see how to get at them...
I'm talking about the properties available as ClassParameter and classArgument in the CTF.
Thanx,
Paolo
-
It's available (to read) in the MiscData(2) field.
Simon
-
It's available (to read) in the MiscData(2) field.
Simon
Thanx, Simon.
I'll check it out when I get to work. Does this mean I have to parse it like I would the PDATA3 field?
Paolo
-
Yes you will.
The things to look for are
<PRMn>=%classParamName%;
<TYPn>=%classParamType%;
<DEFn>=%classParamDefault%;
ARGS=%classArguments%;
Where:
- n is the parameter number you're after (starting at 1)
- Stuff between % characters is the corresponding code template susbstitution macro for this data.
Simon