1
Automation Interface, Add-Ins and Tools / hide new connectors on other diagrams
« on: March 09, 2013, 02:08:05 am »
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
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