HighLight Method

Back to Methods Reference

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

Signature

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.

Remarks

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 ()

(vl-load-com)

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

(vla-Highlight obj 1)

(princ)

);defun

 
The AutoLisp/Visual Lisp/VBA Resource Website
Google
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