Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: JeHo on January 18, 2007, 02:34:22 am

Title: Get current requirement
Post by: JeHo on January 18, 2007, 02:34:22 am
Hello,,
When I have opened a project.eap there is a design. The design contains requirements and sub requirements.

I numbered the requirements A1, a2.. and the sub requirements as A1.1 A1.2 etc.

when I right-mouse-button-click on the requirement I would like to know what number i used for the requirement.

So I develloped a window in C# with a button called 'Get req id '. The result i wanted to rpint in the same window in a textbox.

I used (Automation interface) the repository.GetCurrentDiagram(); but the diagram name/number/description is NULL

I used also the project interface and used ReloadProject(); This results in an error.

Is it possible to retrieve current req-number.
Which interface must be used?

kind regards JeHo