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

Pages: 1 [2] 3
16
Thank you this worked perfect (stupid mistake -.-) !

One Last Question , how can iuse my emf files for the Pictures in the Project Tree ?

17
Yes it works with decoration, but the Standard class Picture is gone.
now i see the puzzle in the northeast but what is with the Standard class Picture ?
shape main
{

}
decoration PuzzlePiece
{
   orientation="NE";
   image("PuzzlePiece.emf",50,0,100,50);
}

18
Hi is it Possible to create a ShapeScript which Looks just like a Class with a puzzlepiece in the right upper Corner.
Im only able to make the full Picture (class) representing the puzzle Piece i have designed .

Thank you for your help.

19
I have to Change my question a Little bit  :o

I have loaded a Library.

first i drop an element from my library (ondropfromtree Returns false !);

now my procedure starts

the dropped element is copied then
added to diagram package then
added to diagram as link.

by Code .

Im Able to Change the Position by

diagramObject.top bottom etc.

but i want to get the coordinates of the drop event?

Is it clear ?

20
Nooby mistake !
today is not my day :D

thanks a lot geert

21
hi,

i'm copying Elements via drag and drop from my library (which i load from a xmi file) to my current Project.

Everything works fine and a Link is created, i can see it in the properties of Library Element and CopiedElement.

But when i try to get These Links again to Change them with my code, the Debugger says always that

newElement.Connectors.Count is 0 but when i look in ea at the properties of These Elements they have got a link.

Can someon tell me why i can create links but cannot read them ?

My aim is to create links form the copied element to his library Element.

EA.Connector aConnector;

            aConnector = newElement.Connectors.AddNew(name,type);
           
            aConnector.ClientID = newElement.ElementID;
            aConnector.SupplierID = aElement.ElementID;
            aConnector.Stereotype = "IsLibInstance";
            aConnector.Update();
            MessageBox.Show(newElement.Connectors.Count);

22
Hi,
Im dropping Elements from a Library to a Diagram.
This Creates a new Element in the diagram Package and adds the new Element to Diagram.

My Problem is :
 
 Is there anway to create the Diagramobject on the Position where it is droppedī?

23
thanks, i will try some workearounds

24
I am Creating new Elements from a Library,
but my Problem is that the Context (selected) Item doesn`t Change.

f.e if i create Attribute ea automaticly changes the context to the new Attribute.

but this doesnt work with Operations and with Elements(Class Component etc).

is there any possibility to set the Context by the id or gui id ?

In my case i have to Trigger the on contextitemchanged Event with the new created Element.


25

Hi

existingElement = aPackage.Elements.AddNew(existingElement.Name, existingElement.Type);

In this case I am addin a new Element with Name and type of an existing element.

But i wann to create a new element with exact the same properties , requierements, Attribute, methods etc.

is there anyway without writing a lot of routines for copying everything ?


26
Automation Interface, Add-Ins and Tools / Re: Get alle Elements
« on: April 18, 2016, 11:17:08 pm »
thank you geert it worked again, like always

 ;D ;D ;D ;D

27
Automation Interface, Add-Ins and Tools / Re: Get alle Elements
« on: April 15, 2016, 08:15:18 pm »
Note:

I already tried to get the Elements with

EA.Collection aCollection=getElementSets(null,0);

EA.Element aElement=aCollection.getat(x);

but it doesnt work !

28
Automation Interface, Add-Ins and Tools / Get alle Elements
« on: April 15, 2016, 08:10:45 pm »
Hi
at firs    i gave some elements ataggedvalue "isRegistred".

Now i want to see after an Event which Elements have this tag !

I know how to get a tag of the element,

but i don`t know how to get all Elements

and in a Routine then i want to check all elements if they have These tagged value.

1. How can i save all Elements in the open Project in EA.Element[] Array ??
2. The id of aRoot i only can get with parentid not with package id  , i have wrote a recursive Routine,
which should find the Root but i always get a Message id not found, if i hardcode it i only can get it with parentid ?

29
Problem solved !

30
F.e. Root -->View-->Package1-->Package1.1

the Parentid of Package1.1 is Package1
i Want to check if it is a normal Package or View Package ?


Pages: 1 [2] 3