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 need, save the state diagram (the location and configuration segments of a connection). I'm using IDiagramConnectionState, and everything works fine. But I don't have access to a collection of Segment objects, so I can't save data correctly. Is it possible to record the state diagram (not xml), or access to Segments collection other than parsing xlm file ? Thanks. Christopher. |
|
|
Hello Christopher The IDiagramConnection interface and FlowDiagramConnection class has a property called Segments which gets an observable collection of DiagramConnectionSegments. There is an implementation of IDiagramConnectionState called ConnectionState which saves a connection object including its segments. There is even a class called DiagramState which saves the state of an entire diagram. Although, these classes only saves the diagram state, and then can be used to apply the saved state back to a diagram. They do not provide properties for getting the diagram state data so it may not be what you need. Let me know if you have troubles getting the segments. Cheers |
|