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

Pages: [1] 2 3
1
Suggestions and Requests / Re: Event in project browser
« on: July 11, 2008, 09:24:55 pm »
up

2
Suggestions and Requests / Event in project browser
« on: July 05, 2008, 12:29:39 am »
Hello,

i would perform an action when an existing element is added to my diagram via the project browser. But the EA_OnPreNewElement and EA_OnPostNewElement method aren't call, can you add methods to catch events when element is added, modified, deleted, ... via the project method.

3
Automation Interface, Add-Ins and Tools / Re: Open a dialog
« on: July 09, 2008, 04:51:10 pm »
Thank you for the answer

4
Automation Interface, Add-Ins and Tools / Open a dialog
« on: July 08, 2008, 11:02:48 pm »
Hello,

I would know if it is possible to open a input dialog or a filechooser dialog in EA. My addin explores the project tree and extracts informations in an excel file, i want that he can choose the name of this file. I have searched in the help and this forum but i don't find.

Someone can help me, please
Thank you
Bye

5
I make a feature request : here

6
The answer of the bug report (Thank for their very quickly answer) :

When dragging an existing item from the Project Browser onto the
diagram, you are not actually creating a new element, just a reference
to an existing element.  There is no broadcast event for adding an
existing element to a diagram.

The only time this drag-and-drop action will result in a new element is
if you are creating an "Instance" of the element, or a 'Generalization'.


Apparently, it's not possible to perform an action when an existing element is added to a diagram via the project browser

7
Thanks you for your answer, i will report this bug and keep you inform of their answer.

8
Automation Interface, Add-Ins and Tools / Event in project browser
« on: July 03, 2008, 11:42:08 pm »
Hello,

i would perform an action when a new element is added to my diagram, i redefine the Function EA_OnPreNewElement method. It's work but i have a problem when i add a new element in my diagram by drag and drop from an existing element from the project browser the EA_OnPreNewElement isn't call.

What is the method to redefine to perform my action ?


9
Automation Interface, Add-Ins and Tools / Re: Hide Connectors
« on: July 03, 2008, 11:36:11 pm »
Thanks you for your answer.


10
Automation Interface, Add-Ins and Tools / Hide Connectors
« on: July 03, 2008, 10:31:25 pm »
Hello,

I would know i can hide a connector with a stereotype A in all diagrams with a stereotype B.

I try to add a diagramlink in the diagram but i don't know how i can get all diagrams which contains this connector.

Thanks you
bye

11
Automation Interface, Add-Ins and Tools / Re: Hide connectors
« on: June 03, 2008, 01:38:56 am »
Re

I apologize if i haven't explain very well my problem, I create a connector in a diagram A, i would know how can i hide this connector in all others diagram with an add-in. I try to define a diagramLink with isHidden = true, it works but when i create an element with quicklinkers, it doesn't work.

What is the good method to hide the connector to all diagrams except A ?

Thanks you
Bye

12
Automation Interface, Add-Ins and Tools / Hide connectors
« on: June 02, 2008, 07:57:25 pm »
Hello,

I would hide connectors between two elements in all diagrams of a special type. Connectors have a metatype i have created. I success with this code :

Shared Sub HideConnector(ByVal Diagram As EA.Diagram, ByVal Connector As EA.Connector)

        Dim DiagramLink As EA.DiagramLink

        DiagramLink = Diagram.DiagramLinks.AddNew(Connector.ConnectorID, Connector.Type)
        DiagramLink.ConnectorID = Connector.ConnectorID
        DiagramLink.DiagramID = Diagram.DiagramID
        DiagramLink.IsHidden = True
        DiagramLink.Update()
        Diagram.DiagramLinks.Refresh()

    End Sub

But when i create an element with a quicklinker, the connector isn't hidden

Someone knows the difference between to create connectors with toolbox and to create connectors with quicklinkers ?

Thanks you
Bye

13
I don't think it is a bug, i think the parameter isn't the PackageID maybe PackageGUID or something else...

14
When i use it the project closes, i return on the home page of EA and the project reopens. When the project closes, all diagrams ask to be saved.

15
Hello,

I have a question about the method refreshModelView in the repository object. I use this method after i have deleted a package in an another package to refresh the Project Browser. This method take as parameter the id of the package to reload only this package. But the entire model is reloaded.

 
The help say :

Reloads a package or the entire model, updating the user interface.

Parameters:

· PackageID: Long - the ID of the package to reload: if 0, the entire model is reloaded; if a valid package ID, only that package is reloaded


I suppose my id isn't valid but i check it and i think, it is the good id.
Perhaps the id isn't the package.packageID because the packageID is an integer and the parameter is a long

Someone can explain me, what is the parameter to give to this method ?

Thanks you
Bye

Pages: [1] 2 3