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

Pages: [1]
General Board / How to import "realization" from XMI?
« on: March 09, 2004, 09:32:56 am »
I can't manage to import a "realization" link from XMI UML class model - that is a "dependency" with stereotype "realize".
Here is the sample XMI data:

Code: [Select]

   <UML:Stereotype name="realize"/>
   <UML:TaggedValue tag="style" value="3"/>
   <UML:TaggedValue tag="ea_type" value="Realisation"/>
   <UML:TaggedValue tag="direction" value="Source -> Destination"/>
   <UML:TaggedValue tag="linemode" value="3"/>
   <UML:TaggedValue tag="seqno" value="0"/>
   <UML:TaggedValue tag="stereotype" value="realize"/>
   <UML:TaggedValue tag="headStyle" value="0"/>
   <UML:TaggedValue tag="lineStyle" value="0"/>
   <UML:TaggedValue tag="conditional" value="Ğrealizeğ"/>
   <UML:TaggedValue tag="mb" value="Ğrealizeğ"/>

I tried to insert EA's specific Tagged Values, but it seems that EA succesfully ignores them.

Thanks for help.

Best regards,
Hynek Cihlar,

General Board / Troubles with XMI import
« on: March 09, 2004, 09:24:28 am »
Hello EA team!

When importing UML class model through XMI, some data isn't imported at all. So far I've found that not all links survive the import. IMHO it depends solely on the number of elements in the source XMI file. The links get imported when I reduce the number of elements in the source - I emphasize that it doesn't matter which elements are deleted from the XMI.

Any idea?

Best regards,
Hynek Cihlar

General Board / Re: Data types
« on: March 09, 2004, 06:29:26 am »
Just to clarify. In Flex (, we treat types and classes as different entities. That's why I hesitated to use UML class to represent a Flex type. However sterotyped UML class does the trick.

General Board / Re: Data types
« on: March 09, 2004, 06:24:09 am »
Yes, this is the way I had solved this issue. Actually it's not even that bad.  8)

General Board / Data types
« on: March 07, 2004, 11:45:58 am »
I'm looking for a way to define a data type in a package of a logical or class model. Am I just stupid or there is no such way and the only data types good for use are the classes themselves and the "language data types" defined in the EA's configuration?
Thanks for help.


General Board / Better support for XMI
« on: March 08, 2004, 05:05:58 am »
are there plans for better support of XMI?
For example lots of meta-information is put in nondescriptive "taggedValue" elements, which brings the XMI usability down to its knees.


Automation Interface, Add-Ins and Tools / Re: Diagram Automation
« on: March 30, 2004, 01:41:08 am »
But I agree with you that it wouldn't be difficult to implement.

Automation Interface, Add-Ins and Tools / Re: Diagram Automation
« on: March 30, 2004, 01:39:53 am »
Do you realy think we should reinvent the wheel? The code for laying out diagrams is already in EA, it's only matter of exposing it.

Automation Interface, Add-Ins and Tools / Diagram Automation
« on: March 30, 2004, 01:16:13 am »
Hi again!
Is it possibly possible :-) to layout a diagram through the automation interface?
Also, I would like to somehow control the "Parameter Detail".

Any plans to add these features in the following releases?

Thanks guys!

Hynek Cihlar,

I see! I was casting it to an Element!
Thanks for help.

Hynek Cihlar
A && L Soft

Hello folks!
I would like to perform a simple task. I have a package with elements which I'd like to copy to a newly created or an existing diagram.
First I thought this would be a simple task - the documentation includes an example where a similiar task is performed, I'm quoting:

Add and Manage Diagrams
public Object  

''an example of how to create a diagram and add an element to it  

''note the optional use of element rectangle setting using  

''left,right,top and bottom dimensions in AddNew call  


Sub DiagramLifeCycle  


    Dim diagram as object  

    Dim v as object  

    Dim o as object  

    Dim package as object  


    Dim idx as Integer  

    Dim idx2 as integer  


    package = m_Repository.GetPackageByID(5)  


    diagram = package.Diagrams.AddNew("Logical Diagram","Logical")  

    If not diagram.Update Then  


    End if  


    diagram.Notes = "Hello there this is a test"  



    o = package.Elements.AddNew("ReferenceType","Class")  



    '' add element to diagram - supply optional rectangle co-ordinates  


    v = diagram.DiagramObjects.AddNew("l=200;r=400;t=200;b=600;","")  

    v.ElementID = o.ElementID  






End Sub  
-- end of example

This looks very promising, however to my surprise this example is simply wrong! The attribute ElementID of the Element interface is read-only, which means that the assigment from the example will not work!

So, my question is, how to add an existing element from a package to a diagram? Do I have to deepcopy all the writeable attributes and collections from the package-element to a newly cerated diagram-element? Would it even work this way?

Thanks for help.

Hynek Cihlar
A && L Soft

Pages: [1]