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 - André Olivera

Pages: [1] 2
1
General Board / Re: XMI compatible with the Eclipse UML2 Plu
« on: September 12, 2011, 09:58:34 pm »
Hi Dave,

I am facing some problems to export the model in a way that Eclipse can understand.

I am trying to use some Eclipse tools to make this, following this tutorial:
http://nirmalsasidharan.wordpress.com/2010/02/11/ea-uml2-conversion/

i could export the EA to UML2.

I still have problems to export stereotypes, but i think this is because i don't know for sure how to use the tool in a good way.

Other interesting links:
http://uml2ea.blogspot.com/
http://sourceforge.net/projects/components4oaw/

[]'s

André.

2
Hi!

What did you put in t_xref.XrefID??

How can I generate a new GUID and use it in this field?

Thanks!

André.

[edit] I used the C# function system.guid.NewGuid().ToString() and works.. but it is not dangerous?
Im afraid because the guid always must be unique.

3
Automation Interface, Add-Ins and Tools / Re: How to "Make Composite"
« on: April 29, 2011, 07:46:43 am »
hehe great..

I read this in the other topic but I thought that they were talking about this function (SQLQuer())..

really crazy this function without anyone documentation.. but is ok!

thank you!

4
Automation Interface, Add-Ins and Tools / Re: How to "Make Composite"
« on: April 28, 2011, 10:27:00 pm »
Great!

According the topic I can change some fields in the database (.EAP) to turn the element composite.

I will try to use the method "Repository.SQLQuery (string SQL)" to do this.

I dont know why my search didnt return this topic. Now I am having a lot of problems with the search in the forum.

Thanks a lot!

5
Automation Interface, Add-Ins and Tools / Re: How to "Make Composite"
« on: April 28, 2011, 07:55:24 pm »
I tested..

I created a diagram with type "CompositeStructure".

The element didnt change to composite then Im not able to go to the diagram with double-click.

I turn the element into comsposite (Advanced -> Make Composite) then the created diagram is accessed by double-click.

Im almost sure that in version 9, if I change this property by code I can access with double-click.

6
Automation Interface, Add-Ins and Tools / Re: How to "Make Composite"
« on: April 28, 2011, 06:40:47 pm »
Thanks Geert and Aaron..

Geert:

I found two topics interestings for me in the search:
With this: http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1301601786

I understand that I can put a diagram inside the element and after click in the button "create composite" and it will work.

And this: http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1302080632

is more similar with what I want to do, but I didnt test yet if works. According the topic I have to create a diagram with the type "CompositeStructure" inside the element.


Aaron:

I think that this solution (create a diagram inside the element) wont turn the element composite. For me it is not a big problem I think. I think that with this attribute it will work fine.

For now I cannot change my version of EA. But I will try make this after.

Thanks a lot!

André.

7
Automation Interface, Add-Ins and Tools / How to "Make Composite"
« on: April 22, 2011, 02:51:41 am »
Hi!

Does someone know a way to do an "Make Composite" action in one element?

I found a property of Element ("CompositeDiagram") but it is to get the composite diagram if the element is composite.

I want to know how to turn the element composite, and create this diagram.

Thanks!

8
Answering my question:

related topic (http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1303404701/4#4)

When I create a diagram inside the element, this element dont be composite. Only after I click (advanced -> make composite) manually.

Probably in the version 9 of EA is possible make this automatically.

9
Hi Kay,

Could you make what you want?

this code:

Code: [Select]
ibdDiagram = (EA.Diagram)destElement.Diagrams.AddNew(destElement.Name + " from MDL file", "CompositeStructure");
does it turn the element composite? (ie. after I create the diagram with this parameters, can I access this diagram with double click in the element?)

where did you filnd this type: "CompositeStructure"?

Thanks a lot!

André.

10
I just create an new DiagramObject with the embedded element and works fine!

=D

11
Hello!!

I can put one element in one diagram.. Now I want to put the embedded elements toghtere with the element..

Somebody knows how to make this?

12
Now Works!!

I changed the set from

DiagramObj.ElementID = Package.PackageID;

to

DiagramObj.ElementID = Package.Element.ElementID;

And I initialize with the position too..

Is possible find a free space automatically in the diagram?

Thanks a lot everyone!!! :D

13
And What I put in the second parameter?

Where Can I find this documentation?

14
I will try..

I think that I am not setting the position of the Diagram Object..


15
I have created an Diagram Object, then I set the Diagram Object ID to Package ID (that I want to put into the diagram)..

I made an Update() in the Diagram Object and a Refresh() in the Diagram.DiagramObject Collection..

The number of diagram objects in the diagram was increased..

But the package didn't appear in the diagram =/

Do you made something like this before? Do you have some code to show me?

Thanks!!


Pages: [1] 2