If Only I Have TIme
So we have manage to create shapes from code. Now how do we link it? Some of the shape (in my case) need to be link either with other shape or it self. What we need to do is have the link pre made, get the shape to be link and combine it with this code:
MaramaConnection stateLink = createNewConnection(linkType, sourceShape, destShape); // create the link
stateLink.setPropertyValue(“output”, “1”); // set the link property if required
*** the sourceShape and destShape is a type of MaramaShape. I would advise you to create a method that find and return this shape object before proceed.