1
General Board / Re: Hiding flow connectors trouble
« on: March 20, 2024, 09:24:24 pm »
Hell again, Geert, sorry for disturbing you one more time. Unfortunately, I couldn't find any code snippet in your repo that could fit for my purpose, and I finally tried with chatGPT. I can go through an EA objects collection for finding the connector I want to hide, I locate it but I'm not able to finally hide it. I paste a partial code snippet for you to tell me (if you can) what I'm doing bad. I'm almost craisy :-)
// Iterate through connectors of the element
for (var j = 0; j < element.Connectors.Count; j++) {
var connector as EA.Connector;
connector = element.Connectors.GetAt(j);
var nombre=connector.Name.toLowerCase();
var index=nombre.indexOf("data transport solution");
if(index !== -1) {
connector.IsHidden = true;
connector.Update();
}
}
Seems that IsHidden method doesn't exist and I don't know how to progress.
Thousand thanks, Geert, for your help.
Juan
// Iterate through connectors of the element
for (var j = 0; j < element.Connectors.Count; j++) {
var connector as EA.Connector;
connector = element.Connectors.GetAt(j);
var nombre=connector.Name.toLowerCase();
var index=nombre.indexOf("data transport solution");
if(index !== -1) {
connector.IsHidden = true;
connector.Update();
}
}
Seems that IsHidden method doesn't exist and I don't know how to progress.
Thousand thanks, Geert, for your help.
Juan