I need to be able to edit a node (adding /removing shapes to change its appearance and adding/removing ports).I would like to do this in a separate document so I need to move the node in the new document, editting it and update the main document with the last changes (I would like to keep the original links).
Any tips/ideeas/help ?
Thanks a lot
There’s an example of how to let users move ports. Search for “MovablePort” in the Demo1 sample.
When replacing the old node with the new one, you’ll need to do this explicitly by adding the new node to the user’s document, reconnecting each of the links from the old node to the new one, and then Remove’ing the old node. That’s because GoDiagram can’t know exactly how you want to map old ports to new ones.