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

Pages: 1 ... 8 9 [10]
136
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.

137
Automation Interface, Add-Ins and Tools / Re: API: ImportPackageXMI
« on: November 05, 2012, 06:29:29 pm »
I did try it. Actally, I don't need to select package for it, just provide the GUID of the package. What did I wrong? Forgot to update the package which I've added. It did not have the packageGUID's value. Now it does work. Sorry for trouble.

138
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.

139
Automation Interface, Add-Ins and Tools / Re: API: Create eap file
« on: November 05, 2012, 02:21:30 am »
Thanks a lot.

140
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.

141
Oh, I think I'm interested in extracting the data from, but I have no idea how to:
1.Decode the column using base64 (sql query)?
2.unzip the result ...
3.extact str.dat from unzip data

Some hints or answers?

142
Automation Interface, Add-Ins and Tools / Re: API: Baseline and XMI
« on: November 01, 2012, 12:31:30 am »
You are right, only future :) , but in my case, someone would like to go to the past  :-/.

143
Automation Interface, Add-Ins and Tools / Re: API: Baseline and XMI
« on: November 01, 2012, 12:04:26 am »
Forgot to mention, some one recommended to export package in .xmi, but it does not solve my problem, because I need the rollback option.

144
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.

145
Automation Interface, Add-Ins and Tools / Re: Baseline and API
« on: October 24, 2012, 10:04:16 pm »
OK. It's done. Sorry for troubles.

146
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.

147
I did find the GenerateClass (string ElementGUID, string ExtraOptions) method of the Project class, but this method does not show the Code Generation Dialog Box and puts all .java files in some default directory what is not write. Probably I have to use this ExtraOptions string but I found nothing about that.

Thanks.

148
Hello,

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

Thanks.

149
Hello,

Another one surprise from EA. I'm trying change Stereotype of a Class using API or SQL stetement. Nothing happened. My code:

if (element.Type =="Class")
{
element.Stereotype ="NewStereotype";
element.Update();
}
  The Message :"Element Locked" I don't uderstand because I Applied my User Locked.

When I used SQL Query: MyRepository.Execute("Update t_object bla-bla");
It did not do it's job.

What is wrong?

Thanks.

Pages: 1 ... 8 9 [10]