DiagramProperties model = new DiagramProperties();
//set routing constraints in diagram model
model.Constraints = DiagramConstraints.Default | DiagramConstraints.Routing;
Connector connector = new Connector();
//set routing constraints in connector
connector.Constraints = ConnectorConstraints.Default | ConnectorConstraints.Routing; |