I called Update() after setting client and supplier and yet same exception is showing.
the code is:
Element newElem = (Element)m_ElemUseCase.Elements.AddNew("NewElement", "Activity");
newElem.Update();
Connector con2 = (Connector)newElem.Connectors.AddNew("Con", "Transition");//create connector from new element to one below
con2.ClientID = m_ListActivities[rowIndex].ElementID;
con2.SupplierID = m_ListActivities[rowIndex + 1].ElementID;
con2.Update();
if you dont understand something - ask me...
thanks-
Ami.