Profile Picture

Connector Toolbar vs Drag drop

Posted By Pramod Sreekanthan 14 Years Ago
Author
Message
Nevron Support
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

Hi,

yes, there is a difference ! When you drop the dynamic HV connector from the library you just create it, but when it's created with the tool from the toolbar it is automatically routed. If you want the connector to always reroute according to the obstacles that stand in its way, set its RerouteAutomatically property to Always.



Best Regards,
Nevron Support Team



Pramod Sreekanthan
Posted 14 Years Ago
View Quick Profile
Junior Member

Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)

Group: Forum Members
Last Active: 13 Years Ago
Posts: 17, Visits: 1

We observe that drag and drop feature differs from that of a tool bar. If a connector(Dynamic HV) is picked from the Connector tool bar and two shapes are connected, it automatically corrects the routing. But if a connector(Dynamic HV) is dropped from the Connector palette and connected, it does not route appropriately..User has to click re-route. I’ve attached the screenshot. How to synchronize the behavior between tool bar and drag drop?

We've handled the issue thourgh EventSink Connected and rerouting the connector. Are there other better ways to handle this?

void EventSinkService_Connected(NConnectionEventArgs args)

{

//Reroute the connector after ports are connected

if (nDrawingView1.Selection.Nodes[0].GetType().Equals(typeof(NRoutableConnector)))

{

NRoutableConnector routableConn = (NRoutableConnector)nDrawingView1.Selection.Nodes[0];

if (routableConn.FromShape != null && routableConn.ToShape != null)

{

routableConn.Reroute();

}

}

}



Attachments
NevronRouting.zip (81 views, 148.00 KB)


Similar Topics


Reading This Topic