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

Pages: [1]
Suggestions and Requests / Object GUID
« on: February 09, 2009, 09:46:33 pm »
Would it be possible to implement the java RunReport on a object GUID. Like a UC or a Class.

Automation Interface, Add-Ins and Tools / SpearFish Plugin
« on: October 23, 2009, 05:30:05 am »
I've been working on a Plugin for EA for some time has a lot of features (some of them are not finished yet).

The source code is not up there yet (will be if there's enough intrest) ... I'm hoping this project will grow into something bigger!

Let me know what you think!!

Automation Interface, Add-Ins and Tools / Create EA UI Screen
« on: August 05, 2009, 06:01:08 pm »
I'm having issues creating a UI Window in EA through C#.

I create a new Element of type Screen (which results in a new Window object in the UI Model.
Then I'm adding the controls on the Screen with MyNewWindow.Elements.AddNew.

I can see MyNewWindow in the Project browser, with a bunch of controls attached to it... but when I drag the Screen onto a diagram... I'm not seeing the controls at all.

I know with a DiagramObject you have to position the object in a Diagram... but how do you position a control in a screen??

Any help is appreciated!!

Automation Interface, Add-Ins and Tools / Create Element
« on: March 16, 2009, 06:52:44 pm »
Could anyone tell me what I'm missing?
I see the element getting created in the project tree... but as soon as I refresh the tree, my new element "dissapears".

The idea is to create an element in a package called "Issues" and add the new element in the first diagram found in the "Issues" package.

Here is the code I'm using for this...

EA.Package selectedProject = this.getSelectedProject(repository);
EA.Package issuesModel = (EA.Package)selectedProject.Packages.GetByName("Issues");
EA.Diagram issuesDiagram = (EA.Diagram)issuesModel.Diagrams.GetByName("Issues");
EA.Element element = (EA.Element)issuesModel.Elements.AddNew(newEAIssue.getIssueName(), "Issue");
element.Notes = newEAIssue.getNotes();
element.Priority = newEAIssue.getPriority();
element.Status = newEAIssue.getStatus();
element.Type = newEAIssue.getType();

EA.DiagramObject diagramObject = (EA.DiagramObject)issuesDiagram.DiagramObjects.AddNew("", "Issue");
diagramObject.ElementID = element.ElementID; = 100;
diagramObject.left = 100;
diagramObject.bottom = 150;
diagramObject.right = 200;

What am I doing wrong or not doing at all?

Thank you!

Automation Interface, Add-Ins and Tools / Create New Root Node
« on: March 06, 2009, 01:08:12 am »
Does anyone know if there's  a way for creating a new Root node from C#?

Does someone know what the Java equivalent is for the follwing code:

using System.Runtime.InteropServices;
object obj = Marshal.GetActiveObject("EA.App");
EA.App app = obj as EA.App;
EA.Repository rep = app.Repository;

This is supposed to get a reference to the running instance of EA.

Thanks! :exclamation

Automation Interface, Add-Ins and Tools / RunReport on an Object GUID
« on: February 07, 2009, 02:51:28 am »
I would need to run a RTF template on a specific object within a Repository and not on an entire package.

so for ex. If I have a the following structure MyProject\Use Case Model\My First UC Package\MyFirstUC.
If I want an RTF documentation of "MyFirstUC" I need to pass the package GUID... this will print out all objects under "My First UC Package".
But what if I have several UC in my package ... and I want an RTF document for only one UC... how can I do this from the API??

I know this should be possible since you can print ONE specific object if you run a SQL query that has an "Object_id" in.

Thanks for your help!

Pages: [1]