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

Pages: 1 [2] 3
16
Automation Interface, Add-Ins and Tools / Create custom Diagram from MDG
« on: February 24, 2017, 07:50:37 pm »
Hi!
I created a new MDG that defines a new toolbox and assign it to a custom diagram. In Ea, when I create a new diagram, i can select my new technology and i haven't any problem, but when i create a diagram from an addin only the called "Custom" toolbox are shown, not my custom toolbox:



The way I create the diagram is:
            EA.Diagram diagram = thePackage.Diagrams.AddNew(diagramName, "DevOpsMDG::DevOps");
            diagram.Update();

And in my MDG file I have:

               <Stereotype name="DevOps " alias="DevOps" notes="Custom MDG" cx="386" cy="88" bgcolor="-1" fontcolor="-1" bordercolor="-1" borderwidth="-1" hideicon="0">
                  <AppliesTo>
                    <Apply type="Diagram_Custom">
                          <Property name="alias" value="DevOps"/>
                     <Property name="diagramID" value="DevOps"/>
                     <Property name="toolbox" value="DevOps"/>
                    </Apply>
                  </AppliesTo>
               </Stereotype>

I think the problem must be in one of this codes. Anyone know what I'm doing wrong?

Greetings.

17
General Board / Re: Export extended BPMN2.0 elements
« on: February 16, 2017, 06:35:42 pm »
Thanks Geert, I'll have to find another solution.

Also, I was testing the EA export functionality, but I couldn't load the exported files on other tools like bizagi even if only standard elements are imported.

Do you know how I have to do the export so my diagrams are displayed correctly in other tools?

Greetings!

18
General Board / Export extended BPMN2.0 elements
« on: February 16, 2017, 03:51:19 am »
Hi!

I created new elements that extend from BPMN Activity following this guide:
http://sparxsystems.com/enterprise_architect_user_guide/12.1/building_models/non-uml_metatypes.html



The new element works fine, but when I want to export the package that contains an activity with the new stereotype in BPMN 2.0 XML format, this element doesn't appear on the xml file. This doesn't happen if I export the package in XMI format.

Also I've noticed that the "Exclude EA Extensions" option is disabled


May EA doesn't allow this or I'm doing something wrong?


19
General Board / Re: Add an image to stereotype
« on: February 15, 2017, 11:07:29 pm »
Thanks, I didn't see the "image" instruction

20
General Board / Add an image to stereotype
« on: February 13, 2017, 07:42:26 pm »
Hi!,

I'm developing some new stereotypes for create new elements, my goal is add some .jpg icons to this new elements, but I don't know how.

I was trying with _image attribute, but it only allows  EAShapeScript 1.0 type. How can i get some like this?


21
Automation Interface, Add-Ins and Tools / Internationalize addin menu
« on: December 02, 2016, 10:45:12 pm »
Hi, I'm developing a C# addin and I have to internationalize it. I'm using resource (.resx) files on visual studio to translate most of the things. this seems to work well, I can change all the UI and al the strings on my program, but seems that addin menu items only accept const values so I cant change them.

There any way to change the menu depending of the user system language?

22
I want to create tagged values through the API that can not be edited by EA users.

I would really use any system that save key / value pairs on elements that can not be edited by users, it does not have to be done using tagged values.

23
Automation Interface, Add-Ins and Tools / Custom Tagged Values by C# addin
« on: November 11, 2016, 02:03:37 am »
Hi,

I'm programming an addin that generate some Archimate elements and I need to create some TV for each elements, but I need that some of them be read only.
How can I do that? I know how to create tagged values, but don't how to manage tagged value types through the automation interface. Any tip?

24
Oh!, now it works, thaks you Simon :D
Just out of curiosity, why "Author" and "Tag" works without the "element.update" and "Notes" does not?

25
Hi!, I'm trying to set the "Notes" attribute of a package, but I can't. My code is more or less the next:
Code: [Select]
                EA.Package selectedPackage = Repository.GetTreeSelectedPackage();

                EA.Package repPackage selectedPackage.Packages.AddNew(package_data[0], "");

                repPackage.Update();

                repPackage.Element.Author = package_data[1];
                repPackage.Element.Notes = package_data[2];
                repPackage.Element.Tag = package_data[3];

                repPackage.Update();

Below this, on other function I have:

Code: [Select]
         
                    textbox_name.text = package.Element.Name;
                    textbox_author.text = package.Element.Author;
                    textbox_notes.text = package.Element.Notes;
                    textbox_tag.text package.Element.Tag;

All, except Notes works, and if I edit manually the Notes field on the package properties window, the second function, the  textbox_notes.text = package.Element.Notes; also works, so I think I missed something about the repPackage.Element.Notes = package_data[2];

Can somebody help me?

26
General Board / Re: BPMN 2.0 Exclusive Gateway (start) - need help
« on: September 12, 2016, 06:59:55 pm »
Have you tried to put in "True" the "markerVisible" tag value?

27
That exactly what I need, I've done some tests and works perfectly, thanks Geert.

28
Thanks again qwerty, i'll follow your advice and I going to practice with simpler examples before trying that.

Greetings

29
Thank you very much qwerty, but I have never before worked directly with the EA database and i fear break something. Can you show me some little example of how to create this kind of diagram?

30
General Board / Re: Associate Diagram to Element
« on: August 23, 2016, 08:45:11 pm »
Ok, sorry for that, I post on this topic because I think my question is very similar to the owner's question.

Anyway, I have put the issue here http://sparxsystems.com/forums/smf/index.php/topic,35949.0.html

Pages: 1 [2] 3