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, See my attached image of my Tree Layout Diagram. What's the proper approach if I want to programatically reorder nodes in the 2nd row? For example, move "ABC ParentD" to the far right? I know the diagram is layed out in the order that nodes and connections are added to the Diagram as it is built. But once it's built, what approach do I take? Manipulate Diagram.Nodes collection? Manipulate Diagram.Connections? Manipulate the "Sheet1" connections from the bottom connection point? I know there has to be an easy way. EDIT: I answered my own question. Was spinning my wheels all day on this. Somehow posting the question cleared my head. by looping through each of the child nodes collection, I can sort/re-connect them based on each node's (int) Order property with a few lines of code:
|
|
|
Hi Chris, Good to hear you solved the issue. That is quite a nice simple solution. -Jason Fauchelle |
|