I’m using GoDiagrams 4.1 version.
I’m trying to find an existing link in the document.
I set the MaintainsPartID to true for the document.
I assign PartId to the links when drawing them.
For Example - Assume link.PartID = 1: (using Transition from StateCharter example)
Ok got it!
Even before I add the first link to the document, Document.LastPartID is 68.
So if I set the Link.PartID to anything less than 68 will not work.
Is there a way to “tag” the link with that ID (probably would be less that the LastPartID of the document) and find it from the document using that ID?
I read in the user guide about “UserFlags”. Can I find objects from the document using this?
I was thinking to save the PartID’s that the links get after adding them to the document to the table where all the info relating to the link is kept.
But once the Graph is saved to xml can we retain the same partids when the graph gets loaded again?
I was thinking to spit out the part id’s in to the xml that gets generated when saving, so that when it reloads… the parts get the same part id as they had before they were saved.
I will also be saving this id to the table for reference in future.