getDXFint()

Synopsis

Returns the value of the DXF group code for the entity as an Integer. The group code must have an integral value. Generates an error if the handle cannot be used to find an entity, or if the group code does not exist for the entity.

Note: Certain AutoCAD group codes, such as 5 (Handle) or 8 (Layer) may look numeric but are actually String-typed.

Syntax

getDXFint ( handle As String, _
            code As Integer ) As Integer 
Argument Type Description
handle string Handle of the AutoCAD entity. Must be the "modelSelf" handle, such as: first(insert_1.modelSelf) . Note: modelSelf returns a list, so you must use the first() function to retrieve only the first element.
code integer The DXF group code.

Example 1

Insert with DXF code 66 (Attributes-follow flag)

Intent >getDXFint(First(TestInsert.modelSelf), 66) 
--> 1