This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi, I have came across with some old issue again which was resolved previously: (Attached current picture as well) http://www.mindscapehq.com/forums/thread/4200 Anyway, I believe in order to really customize how the connection path should go, I should implement our own A* PathFinder for the node. I would appreciate if you could point me to a sample how to implement the custom path finder. |
|
|
Hello I have resolved the issue you pointed out which will be fixed in the next nightly build. Creating a custom path finder is not trivial, so we don't have any samples showing how to create one. Though it is still possible. You can implement the IPathfinder interface and implement its FindPath method. This takes the IDiagramConnection being routed, and the IDiagramModel that contains the connection. From the IDiagramModel, you can get all the other connections and nodes if you need to do any collision detection. You can use the FromConnectionPoint and ToConnectionPoint properties on the connection to get its source and destination. And you can get the nodes (or connections) that the connection is attached to by using the Connectable property on the source and destination connection points of the connection. The method just needs to return a ReadOnlyCollection of Point objects that map out the connections path in diagram space. The first point in the collection would be the position of the connections source point. And the last point would be the position of the connections destination point. Let me know if you need more info. -Jason |
|