Hello Aron,
I modified my code according your suguestion. Now the saving works OK. but I got the same problem when I click the "Open" icon to open a diagram. After I opened a diagram, click the "Add Condition" etc Icons, the program looks "freeze".
I attached my newly modified code here for you to run it to re-produce the problem. Could you indentify the cause for me?
Thanks
it,
>Hi
>
>After taking a look at the application, it looks like the InsertSymbolTool(s) are not properly registered. Take a look at the
modified version of barItemAddCondition_Click event:
>this.diagram.Controller.RegisterTool(new InsertSymbolTool("InsertCondition", typeof(clsConditionSymbol)));
>this.diagram.Controller.ActivateTool("InsertCondition");
>
>and also this line in your RegisterCustomTools() routine.
>this.diagram.Controller.RegisterTool(new InsertSymbolTool("InsertCondition", typeof(clsConditionSymbol)));
>
>Now when you save the Diagram and then try to insert a ConditionSymbol it will work fine, but the other Symbols cannot be inserted as they are not registered properly. The LinkTool works fine as it has been registered properly. You need to modify the RegisterCustomTools() routine along with registering the InsertSymbolTool for other custom symbols to address this issue.
>
>Regards
>Arun
CS_7589.zip