Object-Handling Functions Reference (AutoLISP)

 
 
 

The following table provides summary descriptions of the AutoLISP object-handling functions.

Object-handling functions

Function

Description

(dumpallproperties ename [context])

Retrieves an entity’s supported properties

(entdel ename)

Deletes objects (entities) or restores previously deleted objects

(entget ename [applist])

Retrieves an object's definition data

(entlast)

Returns the name of the last non-deleted main object in the drawing

(entmake [elist])

Creates a new entity (graphical object) in the drawing

(entmakex [elist])

Makes a new object, gives it a handle and entity name (but does not assign an owner), and then returns the new entity name

(entmod elist)

Modifies the definition data of an object

(entnext [ename])

Returns the name of the next object in the drawing

(entupd ename)

Updates the screen image of an object

(getpropertyvalue ename propertyname [or collectionName index name])

Returns the current value of an entity’s property

(handent handle)

Returns an object name based on its handle

(ispropertyreadonly ename propertyname [or collectionName index name])

Returns the read-only state of an entity’s property

(setpropertyvalue ename propertyname value [or collectionname index name val])

Sets the property value for an entity

(vlax-dump-object obj)

Lists an object's methods and properties

NoteExtended AutoLISP extension: requires vl-load-com

(vlax-erased-p obj)

Determines whether an object was erased

NoteExtended AutoLISP extension: requires vl-load-com

(vlax-get-acad-object)

Retrieves the top-level AutoCAD application object for the current AutoCAD session

NoteExtended AutoLISP extension: requires vl-load-com

(vlax-method-applicable-p obj method)

Determines whether an object supports a particular method

NoteExtended AutoLISP extension: requires vl-load-com

(vlax-object-released-p obj)

Determines whether an object has been released

NoteExtended AutoLISP extension: requires vl-load-com

(vlax-read-enabled-p obj)

Determines whether an object can be read

NoteExtended AutoLISP extension: requires vl-load-com

(vlax-release-object obj)

Releases a drawing object

NoteExtended AutoLISP extension: requires vl-load-com

(vlax-typeinfo-available-p obj)

Determines whether type library information is present for the specified type of object

NoteExtended AutoLISP extension: requires vl-load-com

(vlax-write-enabled-p obj)

Determines whether an AutoCAD drawing object can be modified

NoteExtended AutoLISP extension: requires vl-load-com