4 Replies Latest reply on Aug 5, 2015 6:17 AM by Dennis Moll

    Selfcreated surfaces disconnect from the client

    Dennis Moll

      Hello all,


      in our programm we intersect 2 surfaces to create a curve. After that we create another surface through Modeler::CreateSphericalSurface2 . The directly following intersection between the sphere and the initially created curve throws an error:


      System.Runtime.InteropServices.COMException (0x80010108): The object invoked has disconnected from its clients. (Exception from HRESULT: 0x80010108 (RPC_E_DISCONNECTED))


      As it seems, solidworks lost the pointer to the sphere. We've had this problem before with faces and solved it with IEntity::GetSafeEntity. Is there a similar method for surfaces or something else we can do to avoid the errror like another method to create a sphere?


      Any help at all would be greatly appreciated.