Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: deg-ea on September 07, 2013, 05:09:30 am

Title: Set connector visibility in a diagram
Post by: deg-ea on September 07, 2013, 05:09:30 am
Is there a way to set connector visibility in a diagram through the automation interface?  I have a python script that creates a new diagram, adds some existing packages to it, and creates some realization connectors between some of packages.  But the existing packages have other dependency connectors which also show up in the diagram.  I'm looking for a way to turn off the visibility on the dependency connectors for this diagram, similar to what you can do manually with Diagram/Advanced/Visible Relations.
Title: Re: Set connector visibility in a diagram
Post by: qwerty on September 07, 2013, 11:37:07 pm
The "trick" is to create entries to DiagramConnectors for all present connectors and marking them invisible. That's what happens doing it manually. There is no single flag for all connectors.

q.