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.


Topics - 2pointO

Pages: [1]
1
Hello,

Is there a possibility to add more than one label to an element which is not a connector (e.g. component , exposed interfaces ...?

Greetings Sarah

2
Hello,

I have a few components to which I want to add several exposed Interfaces of different types. I add them to the component so I can move them around on the edge of the object and connect them with other objects.
Is it possible to group those exposed interfaces into categories. I know I can create an interface object but then I can't attach it to the component any longer and lose information displayed through the component (the interface object has no information.). For example:

Component : Dog
Interface category : move
exposed interface : slow , fast , not ....

displayed in a hierachical structure so I can add to the component dog the exposed interface : move.slow or move.fast or just move.

Basically I want to group them together in a folder but INSIDE of the component so that I still can move it around and attach it to the componet it's supposed to be for. Any hits, tips?

Thank you.

3
Hello

I've set up my Enterprise Architect to show Element Shadows (in the Tools-Option-General-Diagram-Appearance menu).
After that I've created some custom shadows at Settings- Project Types - General Types and applied it to all elements.

As a result I have a normal grey default shadow shown, but it won't switch colors when changing the status to the right color.

Any hits on how to go about that?

Greetings Sarah

4
Hello,

I have following problem.
First the idea what I want to achieve :
I have a component diagram with the standard displaying of the component shapes. For visualizing spezific tagged values I added a shapescript to a stereotype which is working fine.
Now I'm trying to write a script to automatically change the appearance of all elements of a packages through assigning the customized stereotype to them which also works see this JScript :

Code: [Select]
function main()
{

var thePackage as EA.Package;
thePackage = Repository.GetTreeSelectedPackage();

var elements as EA.Collection;
elements=thePackage.Elements;


for (var i=0;i<elements.Count;i++){
var currentElement as EA.Element;
currentElement = elements.GetAt(i);
currentElement.Stereotype="custom";
currentElement.Update();
thePackage.Elements.Refresh();
}

Session.Output("Stereotype changed into CUSTOM");


}

main();

So now everything is displaying the way I want it to and I can get my wished diagram view for presenting purposes.

Here's where the problem is:

Now I want to change the appearance back to the default component type.
Because I have over a few hundred components in my package it would take a long time to reset them manually.

I had 2 thoughts on that , either delete the existing stereotype assigned to the element (but without deleting the stereotype definition because I later want to use it again with the shape script) or assign it a new stereotype which only shows the default appearance.

I tried it this way :
Code: [Select]
function main()
{

var thePackage as EA.Package;
thePackage = Repository.GetTreeSelectedPackage();


var elements as EA.Collection;
elements=thePackage.Elements;


for (var i=0;i<elements.Count;i++){

var currentElement as EA.Element;
currentElement = elements.GetAt(i);


var currentStereotype as EA.Stereotype;
currentStereotype=currentElement.Stereotype;


if(currentStereotype.Name="custom"){
currentStereotype.Name = null;

}


currentElement.Update();


thePackage.Elements.Refresh();
}

Session.Output(currentStereotype);


}

main();

But now it tells me that edit and continue are unsupported for the stereotype. If I give it another name , it just adds a blank stereotype of the name to the already existing custom stereotype to the element which doesn't override the appearance of the custom shape script. (looks like << blank , custom >>)
I even tried to assign it the _strickness attribute for only having one stereotype at a time but somehow this doesn't do anything.

The Idea behind this was to build a switch to have elements in 2 versions for displaying different attributes visually and to go back and forth between those two whenever needed.

Maybe someone can help me or knows another way around this?

Greetings Sarah

Pages: [1]