IntelliCAD 11.1 Object Library
EntityName Property
See Also 
BlockInsert Object : EntityName Property

Description

Returns the class name of the entity.

Property type

Read-only property

Syntax

Visual Basic
Public Property EntityName As String

Example

Private Sub EntityNameExample()

' This example returns the EntityName property for drawing entities.

     Dim ents As Object

     Dim ent As Object

     Dim ct As Integer

     Set ents = ActiveDocument.ModelSpace

     ct = ents.Count - 1

     MsgBox "No. of entities = " & ct

     Set ent = ents.Item(ct)

     MsgBox "The EntityName property for the last entity is: " & ent.EntityName

End Sub

See Also

© 2022 IntelliCAD Technology Consortium. All Rights Reserved.