IntelliCAD 11.1 Object Library
Delete Method
See Also 
RegisteredApplication Object : Delete Method

Description

Deletes the specified object.

Syntax

Visual Basic
Public Sub Delete() 

Example

Private Sub Delete_Example()

     ' This example creates a Layer named by the user.

     ' It then deletes the layer.

     Dim newLayer As IntelliCAD.Layer

     Dim lName As String

     lName = InputBox("Type a layer name")

     ' Create the new layer

     Set newLayer = ThisDocument.Layers.Add(lName)

     MsgBox "Layer " & newLayer.Name & " has been added."

     ' Delete the layer

     newLayer.Delete

     MsgBox "Layer " & newLayer.Name & " has been deleted."

End Sub

See Also

© 2022 IntelliCAD Technology Consortium. All Rights Reserved.