|Need suggestion on programatically creating connection with diamond shape in between [message #996707]
||Wed, 02 January 2013 18:17
| Neeraj Bhusare
Registered: July 2009
I have programatically created a connection with diamond shape in between (image below). I have tired two approaches. The second one described below works, however I am not sure if it is correct. I would like to know if there is a better way to do it.
Initially, I tried creating the above in the feature that creates the connection (first connection from source object to the fixed_left_anchor on the diamond and second connection from the fixed_right_anchor to the object on the right), however I realized that I could only return a single connection object from the add() method, and I had created two connections. I looked at the "CompositeConnection" and I guess it won't work in my case.
As an alternative, I wrote a separate feature that creates the diamond shape and the connections (objectA->DiamonShape->objectB, here -> represents a connection from/to objectX to the fixed anchor on the diamond shape). However, I am not very confident with this approach. There are couple of issues like - connection delete only deletes the selected connection and not the whole (connections + diamond shape). Selection doesn't work as expected.
Couldn't find much help in the following threads,
Thanks in advance.
Best regards, Neeraj
Powered by FUDForum
. Page generated in 0.02721 seconds