Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Test12345

Pages: [1]
1
General Board / Re: Sparx Java/,net API
« on: February 08, 2012, 01:11:17 am »
Thanks Geert.

2
General Board / Re: Sparx Java/,net API
« on: February 08, 2012, 12:52:13 am »
* I mean to ask , Is this ( sparx ) api user interactive ?

3
General Board / Re: Sparx Java/,net API
« on: February 08, 2012, 12:49:04 am »
Hi,

Thank you so much for the reply.

Even after calling following it is not showing requirements on reload of model :

Element e = coll.AddNew("Requirement","test");
              e.Update();
              e.Refresh();
              coll.Refresh();

Is mercurial api user interactive ? I notice that If we are running on trial license , it asks to continue trial license on

Repository r = new Repository();
              boolean flag = r.OpenFile("D:\Trail.eap");

Till will do not click continue, api does not respond.

Also, I want to create requirement with all the properties set like priority, status , title , description and custom tags. What is the way of doing it ?


4
General Board / Re: Sparx Java/,net API
« on: February 07, 2012, 11:55:01 pm »
Hi Geert,

Thank you so much for your reply. It was really helpfull.

I am still struglling with Create/Update/Get Requirements through java api. I need api to list all requirements of given package/reposirtory. Also I need apis to create/update requiorements in given package. As per previous reports, I tried to add element in following way :

Repository r = new Repository();
boolean flag = r.OpenFile("C:\\TestProject.eap");
Package pkg = r.GetPackageByGuid("{293016A6-0D38-427d-90E4-3EE5925DB438}");
org.sparx.Collection<Element> coll = pkg.GetElements();
coll.AddNew("Requirement","test");

Here, it does not give any error. But I can not see any requirement created under package ( having guid {293016A6-0D38-427d-90E4-3EE5925DB438} ).

Also, I was looking at the documentation pdf called enterprise_architect_sdk.pdf. Where there is listing of various classes/ methods. I was looking at Requirement class, but I did not get how to load requirement object.

Is it advisable to use java api or is it better to create .net project ?

Thank you so much once again.

Thanks,
 
Riddhi Shah

5
General Board / Re: Sparx Java/,net API
« on: February 07, 2012, 12:33:31 am »
Hi,

I am trying to open package and get list of elements from package. The issue I am facing is , On package get it loads package on sparx interface , and my package object is still null. I am doing following:

 Repository r = new Repository();
              boolean flag = r.OpenFile("C:\\Project.eap");
            
              Package pkg = r.GetPackageByGuid("293016A6-0D38-427d-90E4-3EE5925DB438");
              org.sparx.Collection<Element> coll = pkg.GetElements();

on pkg.getElements() it gives null pointer exception.

Thanks,

Riddhi

6
General Board / Re: Sparx Java/,net API
« on: February 03, 2012, 01:16:16 am »
Thanks Geert. That was really helpful.

Is there a way in api to create requirement with tagged values ? I could not find the method for the same.

- Riddhi

7
General Board / Re: Sparx Java/,net API
« on: February 02, 2012, 09:51:54 pm »
Hi Geert,

Thank you so much for quick reply.

I was trying to refer .jar & .dll file from C:\Program Files\Sparx Systems\EA Trial\Java API. But here I found a note that in readme.txt that "Limitations and known issues:

1. You cannot currently use this API to write plug-ins for EA. It is only suitable for accessing the automation server API.
"

Is it okay to use this jar & dll for accessing information ? I basically want to fetch information regarding Requirements through my java application.

I appreciate your help.

Thanks.

8
General Board / Sparx Java/,net API
« on: February 02, 2012, 08:02:02 pm »
Hi,

How can I access sparx Java/.net api which can be called from any external tool by importing api. I want to develop a tool over sparx which needs to fetch requirement from sparx. How can I access Sparx SDK for the same ?

Thanks
-Riddhi Shah

9
Automation Interface, Add-Ins and Tools / Create Requirement through api
« on: February 08, 2012, 01:14:52 am »
Hi,

I am trying to create requirement through java api of Automation API. Can anyone please, point me to the api to Create/Update Requirement ? How can I get list of all requirements in given package/repository ?

Thanks,

Riddhi Shah

Pages: [1]