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 Jason, As you can see from the attached picture, I selected two nodes and one connection between them (within the red circle), duplicated them. The new objects are in blue circle. After the duplication, all of the elements on the diagrams are selected, then I tried to move them. The old objects are fine with the move, but the new objects are not. The straight line becomes a curved line. One related feature request: Can you add API to de-select objects? Thank you! Xiaochu |
|
|
Hello Xiaochu In the next nightly build, you will find the DiagramSurface has a DeselectItem method. Pass in model objects of nodes or connections to deselect them. Just so I understand your issue, is it that when you move all the nodes, one of them moves at a different speed as the others? I have not been able to reproduce this, but it sounds like one of the nodes may have been added to the selected items list twice and so is moving twice as much as the other nodes. Our SelectItem method has guards against doing this though. Could you please provide implementation details or even a repro project so that I can debug this issue. Or let me know if I have misunderstood the problem. -Jason Fauchelle |
|
|
Hi Jason, Just tested that the DeselectItem works as intended, thank you! You are exactly right on the node move problem. I don't know why, but somehow, the programmatically selected Nodes are selected twice. I will try to create a repro project and sent that to you. Best, Xiaochu |
|