Hi Dinesh,
thank you for your reply.
My question was not clear so the provided example was not so helpful.
I done some more tests and now I’m trying to formulate the question in a better way.
I would like to connect to custom symbols with a custom connector through custom ports. The aim is to have a list of connectors with information about symbols connected and ports used.
The custom symbol has a property that represents its ID and a certain number of ports with unique ID too (see attached code).
The custom connector, LineConnector derived, has two properties the port From and port To.
Connecting two symbols with the first connector all is right.
Connecting the same two symbols with another connector something goes wrong:
- ConnectionsChanged event fires twice, (inspecting code it seems that edges of From node are incongruent)
- The first connector disappears.
I can’t explain such behavior. Can you help me?
I believe that something is missing in my code building the LineConnectorCustom and its Tool.
Where I can find a complete example showing how to build a custom connector and custom tool to activate it?
I’ve attached my example code. A message box appears after adding the second connector as the ConnectionsChanged event fire twice.
Best Regards
Domenico
TestCustom_e682f937.zip