Links avoiding nodes on non-visible layers

Greetings,

We’re developing a component design system which looks somewhat like a schematic design tool in that we need multiple pages containing different nodes/wires. GoDiagram doesn’t support multiple pages but we were told we could use the layers system to show only those nodes/links on the currently selected page/layer. This approach works quite well; however links will avoid non-visible nodes on other “pages”. Is there any way to limit the link avoidance logic to only avoid nodes on specified layers.

Many thanks,

  • Malcolm

I believe you can do that by making GoDocument.IsAvoidable smarter. Here’s the default:

public virtual bool IsAvoidable(GoObject obj) {
return (obj is IGoNode);
}