HighLight Method

Back to Methods Reference

Sets the highlight status for the given object, or for all objects in a given selection set.


VBA : object.Highlight HighlightFlag

VL : (vla-HighLight object HighlightFlag)

(vla-Highlight obj 1)

  • Object : All Drawing Objects, SelectionSet, AttributeReference, Group
    The object or objects this method applies to.

  • HighlightFlag :: Boolean; input-only
    TRUE: The object is highlighted.
    FALSE: The existing highlight is removed from the object.


Once the highlight flag for an object has been set, a call to the Update or Regen method is required to view the change.

Note that this function does not return the current highlight status of an object.

Example :

(defun c:al-highlight ()


(setq util (vla-get-utility 
(vla-getentity util 'obj 'ip "\nSelect Object: ")

(vla-Highlight obj 1)



The AutoLisp/Visual Lisp/VBA Resource Website
Search the WWW Search AfraLisp

Copyright 1999-Perpetuity by AfraLisp

All rights reserved.
Information in this document is subject to change without notice.
Site created and maintained by Kenny Ramage

The AutoLisp/Visual Lisp/VBA Resource Website