Previous Topic: Deleting ObjectsNext Topic: Deleting Properties and Property Values


ISCModelObjectCollection Interface

The following table contains information on the ISCModelObjectCollection interface, which is used to delete model objects:

Signature

Description

Valid Arguments

VARIANT_BOOL Remove(VARIANT Object)

Removes the specified model object from a model

Object:

  • VT_UNKNOWN – ISCModelObject * pointer to the object that you want to delete. Removes the given object.
  • VT_BSTR – ID of the object. Removes the object with the given object identifier.

Example 23

The following example illustrates how to delete objects in C++ if there is a model objects collection and that a transaction has opened:

CString csID;   // ID of object to be removed
// …
CComVariant bRetVal = scObjColPtr->Remove(COleVariant(csID));

The following example illustrates how to delete objects in Visual Basic .NET if there is a model objects collection and that a transaction has opened:

bRetVal = scObjCol.Remove(objID)