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 - L.Krobot

Pages: [1]
1
unfortunately no success till now ...

only way to achieve this was:
- instead of extending Archimate (or other) MDG, original UML element (i.e. Class) was extended first with own MDG stereotype (i.e. Service Consumer), and then added ALL the rest from the Archimate element (i.e. Business Actor)
- and then created QuickLink artifact, listing first own elements, and then, in sequence, adding the elements from the original Archimate ...

It works, but it is not easy maintainable, you have to reverse engineer everything from Archimate, and on the end you do not have Archimate any more, but only your MDG that is not Archimate extension, but only your own Archimate-like MDG ...

maybe in the future somebody finds the way how to do it in the simple way ...

rgrds,
ljk

2
I'm extending Archimate with my own MDG technology, and I'm adding my new elements into Quick Linker menu,

but, when I test it, on the Quick Linker menu, I'm geting on the top all elements from original Archimate stereotype, and then on the bottom I get elements from my MDG stereotype.

Really, I’d like to have this completely opposite:
I need the elements from my MDG on the top of the menu, and then, the original elements from Archimate on the bottom of the menu.

Do anyone know how to do this ?

thx,
ljk


3
Hi,

anyone knows how to set the (default) Name (label) for the new connector that will be created form MDG connector stereotype ?

Basically, this should replicate the same behavior that works for the elements (i.e. when you drag and drop element from toolbox onto diagram, you get default name, plus sequence number, as specified in your MDG; the same thing (possibly without sequence number) would be (is) required also for connectors)  ...

PS
using the label middletoplabel & print in shape script does not work - it prints fix text label, but does not set connector Name ...

any idea ?

thx,
ljk

4
HI,
anyone knows how to clear the drop-down list (Open an existing  MTS file) on the "MDG Technology Wizard - Use an MTS file" pop-up window ???
thx,
ljk

5
Hi Geert,
I did this with Archimate and basically with all MDGs that I have found in "C:\Program Files (x86)\Sparx Systems\EA\MDGTechnologies" directory, but unfortunately I did not find anything that has the behavior we need.
the suggestion from querty (addins) would work, but we cannot use it, as many people are using only viewer, and we want to deploy only MDG inside of the model (without the need for any addin).
btw, we'll try to find something different or survive without ...
rgrds,
ljk

6
basically, once you add shapescript to an element and you do not call  DrawNativeShape(), and you cannot do this if you need your own shape, the original behavior (Notes & Namespace) is lost ...

we would like keep this behavior (get it back or replicate in some way), as we need it, as well as we need also different shape, but we do not know how to do this ...

7
thx querty,

the real reason why we need this, is that we are developing MDG technology that will extend Archimate,
and we need to create (extend, modify) standard Archimate element shapes in order to mimic the "Requirement" element (shape) behavior ...

BUT, with Archimate (or any shape that we would like to create) this is simple not possible (at least we do not know how, we was not able to do this with any script that we try to develop);

even more, i.e. if you take the original Archimate "Business Process" element, and you want to show Notes or Namespace on any diagram, this does not work !

so, our idea was to take "Requirement" element (shape) and replicate its behavior (shapescript) to either our MDG elements or directly to the Archimate elements ...

any idea (maybe shape script example) on how to achieve this ?

thx & rgrds,
ljk

8

Hi querty,
here is the image (second shape) ...



basically, i'd like to create my own shape that has the same (similar) behavior as "Requirement" element ...
- be able to show/hide Notes (including formating and autosizing of the shape)
- be able to show the parent package (namespace) in the case that element is not in the same package as diagram

thx & rgrds,
ljk

9
Hi,
does anyone have the shapescript for "Requirement" element ?
or, does anyone have shapecripts for: displaying Notes and Parent Package in the same way as EA is doing for the Requirement element ?
thx

10
If you have open a diagram (any diagram), this will work as long as you have active your form, and you are dropping the element on the diagram ...
basically, you should have a diagram opened and on the top of it your form, so when you drag element from the browser to the your control in the form (and open diagram in background), your user will have a filling that element has been dropped into your control (form) ...
if you do not have a open diagram, you could try (on start drag event) create and open on the fly a new diagram (that would enable you to avoid nasty message), and when you drop the element (on end drag event), just close and delete a temporary diagram ....
if you find better solution, let us know ...
rgrds.

11
I have developed my own Add-In (C#) and I have the need to open the Linked Document of the selected element in the standard Sparx RTF Editor, automatically and directly from my Add-In. Anyone has an idea how to do this ?
thx.

12
I have my own Add-In that shows the custom properties dialog instead of the standard (default one), but in some cases i need to show also the deafault one, directly from my Add-In form ....
how I can do this (which API I have to call) ???
thx, ljk

13
Anyone could tell me where I could find the full Add-In API list with the related descriptions (obviously for the latest EA version - 12) ???
And then, could i get the same for the "undocumented" APIs ???
thx, ljk

14
Thanks,

as Geert said, there is no way to drop it directly on the form, but you must have open a diagram where you will try to drop your objects. It is not exactly what i wanted, but it works ...

You drag your object from the project browser to the diagram, and when you drop it, it will not drop on the diagram, but the name will appear in your ListBox (obviously, your add-in form must be activated and visible)...

here is how I did it:

1. first, I create the method:
Code: [Select]
       public Boolean EA_OnPreDropFromTree( EA.Repository Repository, EA.EventProperties Info ) {2. then, get the properties from Info:
Code: [Select]
           // first property is: objectID
            EA.EventProperty property = Info.Get( 0 );
            string objectIdX = property.Value.Trim();
            int objectId = Convert.ToInt32( objectIdX );

            // second property is: objectType
            property = Info.Get( 1 );
            string objectTypeX = property.Value.Trim();
3. after this, get the objects, and add their names into ListBox:
Code: [Select]
           switch ( objectTypeX )
            {
                case "4": // object type 4 = Element
                    EA.Element selectedElement = Repository.GetElementByID( objectId );
                    listBox1.Items.Add( selectedElement.Name );
                    break;
                case "5": // object type 5 = Package
                    EA.Package selectedPackage = Repository.GetPackageByID( objectId );
                    listBox1.Items.Add( selectedPackage.Name );
                    break;
                default:
                    break;
            }
4. and on the end, return "false" in order to prevent dropping objects onto diagram:
Code: [Select]
           return false;
full snippet:
Code: [Select]
       public Boolean EA_OnPreDropFromTree( EA.Repository Repository, EA.EventProperties Info ) {
            // first property is: objectID
            EA.EventProperty property = Info.Get( 0 );
            string objectIdX = property.Value.Trim();
            int objectId = Convert.ToInt32( objectIdX );

            // second property is: objectType
            property = Info.Get( 1 );
            string objectTypeX = property.Value.Trim();

            switch ( objectTypeX )
            {
                case "4": // object type 4 = Element
                    EA.Element selectedElement = Repository.GetElementByID( objectId );
                    listBox1.Items.Add( selectedElement.Name );
                    break;
                case "5": // object type 5 = Package
                    EA.Package selectedPackage = Repository.GetPackageByID( objectId );
                    listBox1.Items.Add( selectedPackage.Name );
                    break;
                default:
                    break;
            }

            return false;

        }

ljk

15
I'm developing various Add-Ins, and I would like to know how to enable the "Drag & Drop" of elements (or packages) from the Project Browser window into ListBox in my Add-In C# Windows Form.
thx.

Pages: [1]