Has highlighting been retired?

Has highlighting been retired?

john.uhden
Mentor Mentor
438 Views
5 Replies
Message 1 of 6

Has highlighting been retired?

john.uhden
Mentor
Mentor

I am trying to highlight an entity just selected via entsel so that the user has a visual confirmation of what entity he selected.  The objects are almost always LWPOLYLINES with a little global width.

Well, I've tried both ways...

(redraw e 3)

(vla-highlight object :vlax-true)

but neither is working.

 

Maybe there is some setting I need to change?

I'm using C3D 2020.

John F. Uhden

0 Likes
Accepted solutions (1)
439 Views
5 Replies
Replies (5)
Message 2 of 6

Kent1Cooper
Consultant
Consultant

Maybe a too-obvious question, but what is 'e'?  If that's a variable holding what (entsel) returns [your "just selected via entsel" but not processed further?], you would [I assume you already know this] need to use (car e) instead.  And of course, similarly, what is 'object'?  If 'e' is in fact an entity name, and 'object' is in fact a VLA object, either approach works for me in Acad2020.

Kent Cooper, AIA
0 Likes
Message 3 of 6

john.uhden
Mentor
Mentor

@Kent1Cooper ,

I am dismayed that you think I don't know.

I guess I'll close and restart AutoCAD.  Maybe even reboot.

John F. Uhden

0 Likes
Message 4 of 6

dbroad
Mentor
Mentor

Works in AutoCAD 2023.

Architect, Registered NC, VA, SC, & GA.
0 Likes
Message 5 of 6

Sea-Haven
Mentor
Mentor
Accepted solution

My $0.05 

(vla-highlight  (setq e (vlax-ename->vla-object (car  (entsel "Pick obj")))) :vlax-true)

 

0 Likes
Message 6 of 6

john.uhden
Mentor
Mentor

@Sea-Haven ,

$0.05?  Inflation is rampant!

Here's mine...

(defun @process (e / obj oldz newz)
  (setq obj (vlax-ename->vla-object e))
  (redraw e 3)
  (and ...

BTW, today it's working?!?

John F. Uhden

0 Likes