Description
Deletes the specified shell.
Syntax
Sub RFModel.DeleteShell(shellID As RFEntityID)
The DeleteShell syntax has these parts:
| Part | Description |
|---|---|
| shellID | [IN] RFEntityID Required. Entity ID of the shell to delete. |
Remarks
Sample
Dim rfErr As RFErrorCode
Dim mdObj As RapidForm.RFModel
Dim shObj As RapidForm.RFShell
Set mdObj = RapidForm.Model
Set shObj = RapidForm.Shell
Dim shID As RFEntityID
' Pick a shell to delete.
rfErr = RapidForm.SelectTools.PickEntity(RF_PICK_SHELL, 1, shID)
shObj.SetID (shID)
' Unregister the shell in the GUI database first, and delete it in the kernel database.
rfErr = RapidForm.UserInterface.DeleteShellFromProjectTree(shID)
mdObj.DeleteShell (shID)