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

Title: Access to Class parameters and arguments
Post 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
Title: Re: Access to Class parameters and arguments
Post by: Eve on August 02, 2005, 04:00:42 pm
It's available (to read) in the MiscData(2) field.

Simon
Title: Re: Access to Class parameters and arguments
Post by: Paolo F Cantoni on August 02, 2005, 04:35:31 pm
Quote
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
Title: Re: Access to Class parameters and arguments
Post by: Eve on August 02, 2005, 08:07:17 pm
Yes you will.

The things to look for are

<PRMn>=%classParamName%;
<TYPn>=%classParamType%;
<DEFn>=%classParamDefault%;
ARGS=%classArguments%;

Where:
Simon