Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: ufechner on September 30, 2007, 10:26:59 pm

Title: Access RAQuest attributes via COM Interface
Post by: ufechner on September 30, 2007, 10:26:59 pm
Hello,

how can I access user defined Attributes of Requirements, that are defined in RA-Quest using the COM-Interface?

I can access normal classes, didn't try to access the attributes of requirements yet.

Any help appreciated.

Uwe Fechner
Title: Re: Access RAQuest attributes via COM Interface
Post by: Takeshi K on September 30, 2007, 10:38:01 pm
Hello Uwe Fechner,

User-defined values are stored as Tagged-Value of EA.
You can access them using COM-Interface.

(Please notice that some internal values are also stored
as Tagged-Values. Please do not modify these RaQuest internal values.)

--
t-kouno
Title: Re: Access RAQuest attributes via COM Interface
Post by: ufechner on October 01, 2007, 02:59:45 am
Thank you.
The next thing I need, is to get the list of:

- the requirements, a given requirement is owned by
- the requirements, a given requirement owns
- the requirements, a given requirement depends on
- the requirements, a given requirement is needed by

Any idea?

Regards:

Uwe Fechner
Title: Re: Access RAQuest attributes via COM Interface
Post by: ufechner on October 01, 2007, 03:46:33 am
Ok, I can use:

GetRelationSet(rsDependStart) and
GetRelationSet(rsDependEnd)

to get the dependencies and the property ParentID
to get the parents of a requirement.

For some reason (I think, it is a bug)
GetRelationSet(rsParents) doesn't work.

But how can I get the children (owns relationship) of a
requirement?

Regards:

Uwe Fechner
Title: Re: Access RAQuest attributes via COM Interface
Post by: Takeshi K on October 01, 2007, 07:19:42 pm
Maybe now it is not problem of RaQuest but of EA API.

If I understand correctly. Element.Elements collection
is children elements.

--
t-kouno