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

Pages: [1]
1
Automation Interface, Add-Ins and Tools / Re: Adding new package problem
« on: August 09, 2006, 12:25:02 pm »
 ;D hey i solved the problem.
string sql = "Update t_object set ea_guid  = \"" + package.PackageGUID + "\" where ea_guid = \"" + package.Element.ElementGUID + "\"";
Repository.Execute(sql);


2
Automation Interface, Add-Ins and Tools / Adding new package problem
« on: August 09, 2006, 11:53:13 am »
I am creating packages for custom documentation. When i create a package with addin, documentation can't find this packages requirements,scenarios ,ext.(Package.PackageElement.*). It can't find even if i add requiremens,scenarios.. manually after creating package with addin.
I discover that in repository(i searched with access) package's guid and package.element's guid are same. But they are different if i create with addin.

EA.Package package = (EA.Package)packageRoot.Packages.AddNew("NEW","Package");
package.Update();

I should solve this problem for my documentation addin.

3
Automation Interface, Add-Ins and Tools / Right Click Problem
« on: March 12, 2006, 11:53:09 pm »
Hi. If i right click on a selected element i can get it. But when i right click an element that is not selected i can't get it altough   it becomes selected. Look at that code please(C#):
Code: [Select]

public object EA_GetMenuItems(EA.Repository Repository, string Location, string MenuName)
{
EA.Collection ec = Repository.GetCurrentDiagram().SelectedObjects;
MessageBox.Show(ec.Count.ToString());

}

I got "0" when i only right click, but "1" or when if I first left click or select objects before i right click. Somebody help please.


Pages: [1]