Skip to content

How to set new position for a Node #285

@NiklasVJM

Description

@NiklasVJM

Hi!

I was trying this tool out, since it looks very promising to what I try to do.

How can I set new position (with X and Y coordinates) to new Node? I need to place nodes into very precise points on this "canvas" and then let this tool do all the routing.

For example, if I have:

mainGraph.AddNode(new Node("T"));
Then, how can I set new absolute X,Y -coordinate for this? I tried with:
mainGraph.FindNode("T").GeometryNode.Center = new Point(10, 10);
but nothing happens. Even after I call: viewer.Invalidate();.
Can you please help me with this? A Code example would be awesome! Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions