How to programmatically select parts in diagram?

WPF V1.2.2.4



Hello,

1)How to programmatically select a node in a diagram having only the node’s key?



1)How to programmatically select a link in a diagram having only the link’s from/to and FromPort/ToPort keys?



Thanks

  1. See this post: …Model.FindNodeByKey and PartManager.FindNodeForData and set Part.IsSelected to true.

  2. …Model.FindNodeByKey for both node keys and then PartManager.FindLinkForData and then set Part.IsSelected to true.