Deleting Features
 
Functions Introduced:
These functions enable you to delete features by specifying their identifiers, identifier lists, layers, or names.
* 
If the feature has children, the children are also deleted.
The syntax of the functions is as follows:
pwlFeatureDeleteByID (
string MdlNameExt, // The full name of the model.
integer FeatureID // The identifier of the
// feature to delete. Use
// parseInt with this
// argument.
);
pwlFeatureDeleteByIDList (
string MdlNameExt, // The full name of the model.
integer NumFeatures, // The number of identifiers
// in the list. Use parseInt
// with this argument.
integer FeatureIDs[] // The list of identifiers
// of features to delete. Use
// parseInt with this
// argument.
);
pwlFeatureDeleteByLayer (
string MdlNameExt, // The full name of the model
string LayerName // The name of the layer to
// delete
);
pwlFeatureDeleteByName (
string MdlNameExt, // The full name of the model
string FeatureName // The name of the feature
// to delete
);
Was this helpful?