Updating an ActiveX Property with vlax-put-property

AutoCAD AutoLISP & Visual LISP

 
Updating an ActiveX Property with vlax-put-property
 
 
 

The vlax-put-property function updates the property of an object. The function requires the following arguments:

  • A VLA-object identifying the object whose property you are updating
  • A symbol or string naming the property to be set
  • The value to set the property to

If vlax-put-property updates the property successfully, it returns nil.

The following function call changes the size of the Microsoft Word toolbar buttons by updating the LargeButtons property of the CommandBars object:

      _$ (vlax-put-property
combars 'LargeButtons :vlax-true)
    
nil