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

Pages: [1]
1
Hello everybody,

I have a big problem. In my company we need the following function for an addin:
I have a diagram A with elements on it. Then I have a diagram B where I drag the elements I created in diagram A from the project browser on it and paste them as simple link. Now I create a connector between the elements on diagram A.
EA then creates the same connector between the corresponding elements on diagram B. But this, we don’t want to happen.
We know that you can hide these connectors using the visible relations dialog, but therefore you need to know all the diagrams where the connector could show up in order to hide it; and this is not convenient in big projects.

I tried several things:
- EA_OnPostNewConnector method which iterates over all diagrams with the connector on it and hide it. It only hides the connector, when the other diagrams (in my example diagram B) aren't open. And it creates multiple entries in the table "t_diagramlinks" for the same connector (one hidden, one not)
- EA_OnPostNewConnector method which sets the field "hidden" of the corresponding connector in the table "t_diagramlinks" to -1 (meaning hidden)

Has anybody an idea how to get around that problem.
This is a very important feature we need.
In my opinion this should be an option available in EA.

Thanks in advance
Andreas

2
Hi everybody,

I created an msi-installer using WiX 3.5 and VS2010 for my add-in. I have now the issue that some users don't have enough privileges to write on the C-drive. In the installer dialog you can change the destination folder, but this has no effect. The installer still wants to write to the location that was displayed before, which is the one I set in the Files.wxs. Is there a way to make the installer work as intended, i.e. changing the directory in the installer dialog has an effect?
The other problem I have, is that I want the add-in installed for every user on the machine. Is there a flag for the installer, where I can set so that the add-in is installed for every user? It should be working, so that you don't have to be an admin on the pc, which means that i can not use the HKLM registry.

Thanks in advance
Andreas

3
Hi everyone,

in my AddIn it is important to create a diagram directly under the model root. In EA 7.x versions this diagram was displayed properly in the project browser but in EA 9 it is not, even it has been created (I open that diagram directly from the AddIn after it has been created).

It's a piffle not to display that diagram in the project browser. (And yes, i know that you can not create a diagram in the project root within EA).

Greetings
Andy

4
Thanks Geert,

that helps me.

Since i'm not a professional in c# - addin writing for the EA, could you give me tips on how to design such an dialog? Just the basics for creating the dialog itself and how i add elements to it.
And could you tell me how to save the settings in the registry or the config file, allthough i think i know how to handle the saving in the file i'm not sure about that.

Greetings Andy

5
Hi everyone,

is there a way to create entries in the options/settings menu of EA for your AddIn.
E.g.: I want to turn off/on my AddIn and therefor it would be great to have such an option in the options/settings menu of EA.

If this is not possible, is there a nice way to create an own settings-dialog with checkboxes etc. instead of disabling and enabling the functions with a separate menu entry for each.

Thanks in advance
Andy

6
Hi everyone,

in my addin, i'm creating multiple elements on a diagram. My problem is, that after my addin run through, all elements on that diagram are on top of each other and the size is horrible. They all have a small width and big height.
Is there a way to set the size of an element proper?

I tried setting the size using repository.Execute(SQLString) but with no success. When i look into the table t_diagramobjects using MS Access the RectTop etc. is set exactly to what i want it but in the EA it's the same as before.

Thank in advance for your help.
Andy

7
Thank you, both, for your answer.

That will help me at least a bit. Nevertheless, it's really bad, that you can not have a checkbox or something like that in your menu, as well as the tooltip. It is possible in the menu that is already in EA, so why not make it yourself.
Well, i think i will send in this as a feature request.

8
Hello everyone,

how can create or handle a menu item for my addin as a checkbox and how can i create tooltips for menu items?
The reason for the checkbox is, that i want a different behavior of my addin when the menu item is checked. So i need to retrieve the state of this menu item in my methods. Is that even possible? Should at least be, i think.

Thanks in advance
Andy

9
Thank you Geert for your quick answer.
Did this require anything else, or is it really so simple?

(Sometimes i doubt upon the easy way ;-), like ockham's razor)

10
Hello everyone,

i am writing an add-in using c# where i want to create a kind of a navigation for all the diagrams in a model.
I implement some methods where i create new diagrams for each package and on that diagram i want hyperlinks referring to the diagrams in that package.
Since the API doesn't support the creation of a hyperlink i instead create text elements and set the PDATA1 field "manually". This is the point where i have the issue: Since my test model has about 700 elements to create i need to manually change the PDATA1 field manually about 700 times, too.
I use the OleDbConnection for communication with the repository and run the command for setting the PDATA1 field in an using(OleDbConnection .....){//command etc.} block. I think we all agree that opening the connection every time an element needs to be changed is nonsense - and by the way: this way has a long execution time for that test model - , so i changed my Add-In and opened the connection once at the beginning of the element creation and closed it at the end. But then there is only one element changed to an hyperlink.
Does anyone of you has any ideas why this is? I hand over the connection to the respective methods where i need to and i also tried it with "ref", but this didn't changed anything. I scratched my head upon this for about 15 hours and i have no clue.
I hope anyone of you won't tell me, that there is no other way than opening the connection each time an element is changed.

Thanks in advance
Andreas

Pages: [1]