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

Pages: 1 2 [3] 4
31
Automation Interface, Add-Ins and Tools / XSD: XML Schema file
« on: December 18, 2012, 09:31:17 pm »
Hello,

I've seen bunch of questions are related to this topic. In my case I need to produce XML Schema file from regular UML. I was looking for some Code Generation Templates for XML Schema which I can adopt for our needs but I did not find it. If such a template does not exist how can I modify the standard ouput of the XML Schema Generation?

Thanks.

32
Automation Interface, Add-Ins and Tools / Code Generation Template
« on: December 31, 2012, 02:45:43 am »
Hi,

It's very simple question: how can I get current date in Code Generation Template? I hope some macro exists, but I did not find it :(.

Thanks.

33
Automation Interface, Add-Ins and Tools / Code Generation Template
« on: December 09, 2012, 10:10:57 pm »
Hello,

I have question regarding string operations in code generation template. I'm looking something like C# String.Contains("substring"). I need to find if class name contains some specific word expression.

Another one question is to get all "Parent Classes" of a class. I can get only one base class from whom derived, but I need to get the parent of this base class and so on. Is it possible get all "generations" of a class?

Thank you in advance.

34
Hello,

I've generated a RTF report and would like to add to it couple diagrams and other info. Can I open the rtf file and write to it or merge couple trf files using EA.DocumentGenerator or something similar to it?

Thanks.

35
Automation Interface, Add-Ins and Tools / API: Diagram
« on: November 25, 2012, 11:04:51 pm »
Hello,

I would like to "drag and drop" a diagram on another one diagram. I can do it as "Diagram Frame" or "Diagram Reference" or "Hyperlink". It does not matter what I can choose the matter is how can I find the original diagram from which actually copy is done. I must use the EA API.

Thank you for your replies.

36
Hello,

I've created my own Add In and would like to register it, but I did not found the directory HKEY_CURRENT_USER\Software\Sparx Systems\EAAddins. The actually EAAddins does not exist, rest of it on the right place.

I'm waiting for your responses and help.

37
Automation Interface, Add-Ins and Tools / API: Insert Text in RTF report
« on: November 21, 2012, 07:10:09 pm »
Hello,

I'm using API for creation RTF report and running into the one problem: when I'm writing a new line I wanted to use a font style which is different from Normal style and after report generation I see the style is Normal anyway.
The code is:
EA.DocumentGenerator generator = new Repository.CreateDocumentGenerator();
generator.NewDocument("MyDocument");
generator.InsertText("BlaBla","Title"); //NOT Normal

Someone has any solutions for it?

Thanks.

38
Automation Interface, Add-Ins and Tools / EA does not see add-ins
« on: September 27, 2012, 10:21:45 pm »
This actually happened to me. I've created and registered my add in, but EA does not see it:(. I followed the Guru Geert example :).

Some advices?

39
Automation Interface, Add-Ins and Tools / API: Class Stereotype
« on: November 14, 2012, 01:30:02 am »
Hello,

I ran into the very weird problem. I'm trying to get ElementID and it's stereotype using API or SQL and I'm getting it, but it's not what I'm waiting for. For example the diagram was copied couple times and some existed class objects were added. When I've selected the diagram and I'm going through all diagram objects asking for it's stereotype and id,the API is bring to me the 'original' elements with some stereotypes that are different from what I see on the diagram. How can I "retrieve" classes I see on diagram?

Thank you in advance.

40
Automation Interface, Add-Ins and Tools / Add Ins: Status "Error-Missing"
« on: October 16, 2012, 08:13:07 pm »
Hello,

I've registerd my dll and created key successfully, but when EA starts in "Manage Add-Ins" the Status of it is "Error - Missing". I tried to do the same on different computes, but get the same result. I checked everything, but did not find the problem.

Thanks.

41
Automation Interface, Add-Ins and Tools / API: ImportPackageXMI
« on: November 05, 2012, 02:20:50 am »
Hello,

How to import a package at a sertain point in Model Tree? Shoul I select the package and after run the ImportPackageXMI?

Thanks.

42
Automation Interface, Add-Ins and Tools / API: Create eap file
« on: November 02, 2012, 01:47:15 am »
Hello,

Is it possible to create eap file using API?

Thanks.

43
Automation Interface, Add-Ins and Tools / API: Baseline and XMI
« on: October 31, 2012, 11:58:48 pm »
Hello,

You can understand from this code that I'm creating baselines, but the problem is I could not trace them. The designer's creating his package. This package contains other packages with diagrams. Designer makes changes, does baseline with my Addin option to create baseline, continues with his changes, wants roll them back and Oooops. How many baselines he's created? Where to find them?

myProject = rep.GetProjectInterface();
foreach (EA.Diagram curDiagram in selPackage.Diagrams)
{
    foreach (EA.DiagramObject curObject in curDiagram.DiagramObjects)
    {
         selElement = rep.GetElementByID(curObject.ElementID);
         if (String.Compare(selElement.Type, "Package", true) == 0)
         {
            baselineName = selElement.Name + DateTime.Now.ToLongTimeString();
           myProject.CreateBaseline(selElement.ElementGUID, baselineName, "");                              
          }//if
     }//foreach
}//foreach

baselineName = selPackage.Name + " " + DateTime.Now.ToLongTimeString();                myProject.CreateBaseline(selPackage.PackageGUID,baselineName,"");

I need a solution how to rollback to some point of changes. Let's say how to save different version of one package with rollback option. Keep in mind that package inside the other package it's very problematic because "subpackages" are used by many other users and they can do lots of changes also and "my designer" must have his version to rollback  :o.

Thank you in advance.

44
Automation Interface, Add-Ins and Tools / Baseline and API
« on: October 24, 2012, 08:00:30 pm »
Hello,

I'm working with baselines and paid attention on the one thing: the baseline for packages which are on the given giagram of a selected package "remembers" nothing about these sub-packages structure. I need to save somehow the track on all changes which happens with diagram's sub-packages and rollback if I need it. Should I use the baseline option for this matter?

I can use this statement:
repository.GetProjectInterface().CreateBaseline(childPackage.GetPackageGUID(), aVersion, aNote);

 But it only for child package, I need to do it for all packages which are located on the diagram of selected package.

45
Hello,

Is it possible to run code generation script for all diagram's classes or at least for one class using API?

Thanks.

Pages: 1 2 [3] 4