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

Pages: [1]
1
Thank you very much! Calling Repository.ShowInProjectView() in one of the two functions works as expected!

2
Hi,

I understand this topic is almost 7 years old, but I am experiencing the same issue and haven't been able to resolve it with the existing recommendations. Unfortunately, when I use the Repository.WriteOutput() method in my Add-In and pass the ElementID, EA does not select the element in the project browser upon double-clicking.

In my Add-In, I have various checks that print warnings in a separate tab in the System Output window. For example, one of the checks prints a warning if an element has no connections, like this:
"The element ... has no connections."

What I want to achieve is to either print the element as a hyperlink, similar to how it can be done in the notes, or allow the user to click the OutputItem and be redirected to the element. Unfortunately, I am not sure how to do this.

I would greatly appreciate any suggestions. Thank you very much in advance for your help.

Best regards,
Niko

3
Yes, this would also be an option. I looked into it but couldn't find an API call to add a Diagram Filter to the Diagram automatically. Do you know how to do that?

4
Perfect, thank you for the answer! This solves my issue.

5
Hello,

I found out that in the ConnectorClass, one can get the target and the source element of the relationship. Now, I am trying to find a way to get all connectors that are connected to a DiagramObject, but I couldn't find anything.

I just wanted to ask if I missed something or if it is impossible to retrieve this information from the API? If it is impossible, I will just store all connectors for each DiagramObject with the information that is available from the API.

I would greatly appreciate any help or guidance you can provide.

Best regards,
Niko

6
Thank you very much for the answer. This should solve my problem. I will try out this approach.

7
Basically, what I need is to go through the DiagramObjects, and if the tagged value is set to true, I want to add the object to my custom tab. This way, the user can see the original view of the diagram and an alternative view in a separate tab.

As far as I understand, for the custom view, I need to write my own class that extends UserControl. This class can be added through the Repository.AddTab() function. Therefore, I believe I need to add the DiagramObject somehow to the UserControl so it can be displayed in the custom tab.

8
Dear all,

I am currently developing an Add-In for EA. I read here that it is possible to implement a custom view in an Add-In.

In my Add-In, I would like to offer an option that displays all elements with a certain tagged value set to 'true' in a custom view. Currently, I have this feature as a Diagram Filter, but I would like to automate it with a script.

However, I cannot figure out how to add a DiagramObject to my UserControl. The reason for this is that I have many diagrams in my project, and rather than adding the same DiagramFilter to every diagram manually, I want to automate the process.

I would greatly appreciate any help or guidance you can provide.

Thank you very much!

Best regards,
Niko

Pages: [1]