AllExperts > AutoCAD 
Search      
AutoCAD
Volunteer
Answers to thousands of questions
 Home · More AutoCAD Questions · Answer Library  · Encyclopedia ·
More AutoCAD Answers
Question Library

Ask a question about AutoCAD
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Scott Cook
Expertise
I`ve been using AutoCAD since 1987 and programming AutoLISP nearly as long. I can answer questions about programming AutoCAD (except ARX) and production enhancement techniques. I cannot answer questions about AutoCAD crashes or DWG corruption. AutoCAD PROGRAMMING (menus, lisp) related questions only!

Experience
Since 1987. Author of Plot2000 software for for AutoCAD, http://www.plot2000.com. PROGRAMMING QUESTIONS ONLY PLEASE. Questions that are NOT related to programming or AutoCAD customization (menus and lisp only please) are outside the scope of my volunteer services and will NOT BE ANSWERED.
 
   

You are here:  Experts > Computing/Technology > Computer-Aided Design > AutoCAD > attribute references highlight

AutoCAD - attribute references highlight


Expert: Scott Cook - 2/1/2005

Question
Hello sir,
Would you please tell me is it possible to highlight an attribute (not attribute definition)
separately from block reference (insert) in vlisp of Autocad 2000i?
I tried this but it doesn't work:

(setq acad_obj(vlax-get-acad-object))
(setq doc(vla-get-activedocument acad_obj))
(setq util(vla-get-utility doc))
(vla-getsubentity util 'objAttr 'pckPnt 'mtxTrans 'dtaContext)
(vlax-method-applicable-p objAttr "Highlight")
(vla-highlight objAttr :vlax-true)

Answer
yes it is, and where you are getting misled here is using the vlx- and vlax functions. it's not neccessary for what you are doing, everything you are trying to do you can get through lisp.
something like (untested code)
(setq en (car (nentsel)))
(redraw en 3)
you are going to have to look at the function reference for redraw and nentsel to check the arguments and return values.  

Add to this Answer    Ask a Question



  Rate this Answer
   Was this answer helpful?
Not at allDefinitely              
   12345  

     
About Us | Advertise on This Site | User Agreement | Privacy Policy | Help
Copyright  © 2008 About, Inc. About and About.com are registered trademarks of About, Inc. The About logo is a trademark of About, Inc. All rights reserved.