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 - themiyac

Pages: [1] 2
1
I am performing the following in order to create a call behavior action typed by an activity type. The call behavior action is being created inside the activity element, but the activity type is not being set by the SetPropertyType method. As far as I am aware it should be set using this method.

/**
/ Creates a call behavior action inside of an activity
/ @param activity the parent element
/ @param name desired name of created call behavior action
/ @param activityType the type of the call behavior action
*/
Element createCallBehaviorAction(Element activity, String name, Element activityType) {
    Element action = activity.GetElements().AddNew(name, "CallBehaviorAction");
    action.SetPropertyType(activityType.GetElementID());
    action.Update();
    return action;
}

Example call: createCallBehaviorAction(testActivity, "action", helloWorld)
After the call -->
I can see the following inside the model
testActivity
   -action
However I expect the type to be set like...
testActivity
   -action : helloWorld


2
General Board / Using EA to make a instance of a block in SysML
« on: July 11, 2015, 03:25:31 am »
Hi, I'm trying to create an instance of a block in EA following the SysMl standard. How do I do that?
Thanks

3
General Board / EA 64 bit Installation and 64 bit Java Api
« on: July 02, 2015, 03:20:58 am »
Does EA have a 64 bit Java Api and/or a EA 64 bit installation?

4
Automation Interface, Add-Ins and Tools / Remove Elements
« on: August 15, 2015, 01:01:04 am »
How do I delete Elements using the Java API from a model?

5
Automation Interface, Add-Ins and Tools / Problem with Stereotypes--
« on: August 11, 2015, 04:57:52 am »
When a Stereotype is applied by appending to the GetStereotypeEx() string, using the fully qualified name of the stereotype i.e. MyProfile::StereotypeX then the existing stereotypes are overridden by the recently added stereotype for example if the stereotype is shown <<block>> prior to appending it will show <<StereotypeX>> once appended. This is a problem for us because if EA doesnt recognize the element as a block we cannot set tag values as elements. Can you please tell us what is happening in the background of GetStereotypeEx() and SetStereotype()

6
Automation Interface, Add-Ins and Tools / Re: Stereotypes
« on: August 06, 2015, 04:23:25 am »
I think fully qualified name is a solution, because it provides the name in terms of Profile::Stereotype::Tag, but would still like to have an official answer from Sparx.

7
Automation Interface, Add-Ins and Tools / Stereotypes
« on: August 06, 2015, 02:37:22 am »
We have defined a profile and it has sterotypes in it. We imported the profile into the model and we are using your java api to apply a stereotype. The apply stereotype method only takes a string. If another profile has a stereotype with the same name that we applied then there is a chance that your apply stereotype method applies another stereotype than the one that we want to apply. How do I destinguish that the GetStereotype method and ApplyStereotype method is coming from our profile when all they return is just the name of the stereotype?

8
Automation Interface, Add-Ins and Tools / Re: UML Profile--
« on: August 06, 2015, 12:20:54 am »
Also I have a Element with a Stereotype Applied from a Particular Profile that I have Applied. How can I get the name of that profile from the API?

9
Automation Interface, Add-Ins and Tools / Re: UML Profile--
« on: August 06, 2015, 12:17:36 am »
How can I get to know through the API if a particular Profile was applied successfully?

10
Automation Interface, Add-Ins and Tools / UML Profile--
« on: August 05, 2015, 11:36:49 pm »
Is there a way that I can access the UML Profile located under project resources using the EA Java API?

12
I am using the Java Api to explore a EA model that I have created.
I initialized the repository and opened a file, but then when I exit the repository a process of EA is still running/allocated to system memory in Windows Task Manager. The size of this allocation is 64,552 K every time I initialize and close the repository using Repository.Exit(). I was wondering if there is a way in the API to stop this process.
Thanks

13
Automation Interface, Add-Ins and Tools / UML Profile--
« on: August 05, 2015, 12:36:33 am »
When a UML Profile is exported as an XML document the file does not contain the element GUIDs for stereotypes that were created. Is there a way that the GUIDs can also be exported?

14
Automation Interface, Add-Ins and Tools / Updating Custom Properties--
« on: August 04, 2015, 04:19:47 am »
After setting a custom property of an Element-- Is updating the Element necessary?

15
Automation Interface, Add-Ins and Tools / Related Links
« on: July 11, 2015, 04:58:59 am »
I was looking through the Java Api and looking at finding the values displayed in the Related Links section of properties displayed of a given object. I'm looking in particular at a block and how the access the related links of a block. Can anyone tell if it is possible and if so how I can access related links through the java api?
Thanks

Pages: [1] 2