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, as of yesterday's nightly build, the sample project: ConnectionPointRelocation.FlowDiagrams is no longer working as it is. seems like the connectionPoints are not swap at all. I am actually looking for a way to refresh the Position of all the other ConnectionPoints whenever I add new connectionPoints to the diagram. Previously, I actually set the PositionCalculator of the ConnectionPoint whenever I instantiate them. But this is not enough since I would like to trigger all of them to re-calculate based on the numbers of current connectionPoints on the relevant edge. For eg: When I added one ConnectionPoint to Right edge, it should be in the middle of the edge since there's only one. Then when I added another, they should be centralized in the middle as well +/- some spacing and etc. Hope to hear from you soon. Thanks. |
|
|
Hello Thanks for bringing the broken sample to our attention. This will be fixed in the next nightly builds. Setting the PositionCalculator is the correct way to achieve the behaviour you need. The trick is to update the PositionCalculators on the connection points that are already on the node. Say for example there is a node that has a connection point in the middle of the right edge. When you add another connection point to the right edge, update the PositionCalculator property of the existing connection point on the right edge to update it's position. Let me know if you need more help with doing this. -Jason |
|