Book a Demo

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

Pages: [1]
1
Automation Interface, Add-Ins and Tools / Composite element ?
« on: August 27, 2008, 04:55:43 pm »
Hello,
I got a problem. I don't know how to make composite element throught API.
Here is algorythme how I do it:
1. create package aaa
2. add class bbb to package aaa
3. add diagram ccc to class bbb
4. bbb.setSubtype(8)
5. add diagram aaa to package aaa
6. add class bbb to package aaa

After this I'm getting something like this:





In advanced menu element is set as composite:


But I cannot do double click and go to subdiagram.
I can do that when I uncheck Make composite in advanced menu
and after check it again.
After this action small icon is showing in right bottom corner
and now I can go to ccc diagram after double click.



I cannot solve what is changing after checking Make composite
action. I was even comparing binary files.

Can You help me ?

2
Automation Interface, Add-Ins and Tools / Condition in sequence diagram
« on: August 08, 2008, 04:12:06 pm »
Hi,
i cannot solve how to set condition in connector in sequence diagram.
Do you know how to do this through API ?

3
Ok i have solved it out with suggestion of Frank Horn. I'am using Java API:

Code: [Select]
Connector conn = // get your connector here
Property prop = conn.GetProperties().Item("IsReturn");
prop.SetValue(new Boolean(true));

But this value is write only, becouse in Java API when you want to invoke Property.getValue() its throwing an exception, but only when the name of the item is "IsReturn"
Should I send a bug report ?

4
Hello,
i got problem. I cannot solve how to create connector to be a return message in sequence diagram.

I can create something like this:


but i need something like this:


I have solved that i can do this in ea by setting isReturn in
properties of message:


Do You know how to do this by interface ?

Pages: [1]