public void abschliessen(int destElementID,int destPin)
{
Draht draht = vmobject.addDrahtIntoCanvas(sourceElementID,sourcePin,destElementID,destPin);
Element sourceElement= (Element)vmobject.getObjectWithID(sourceElementID);
JPin pinA=sourceElement.getPin(sourcePin);
Element destElement= (Element)vmobject.getObjectWithID(destElementID);
JPin pinB=destElement.getPin(destPin);
pinA.draht=draht;
pinB.draht=draht;
if (pinA.pinIO==JPin.PIN_INPUT_OUTPUT) pinA.pinIO=JPin.PIN_OUTPUT;