vla-select help

vla-select help

msarqui
Collaborator Collaborator
1,850 Views
5 Replies
Message 1 of 6

vla-select help

msarqui
Collaborator
Collaborator

Hy guys,

 

Is it possible to use vla-select to select and highlight the previous object?

If yes, how?

Or other method without the "command" because it will be used inside a reactor.

 

Thanks,

Marcelo

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

pbejse
Mentor
Mentor

@msarqui wrote:

Hy guys,

 

Is it possible to use vla-select to select and highlight the previous object?

If yes, how?

Or other method without the "command" because it will be used inside a reactor.

 

Thanks,

Marcelo


There is a fine example shown at AUTODESK KNOWLEDGE NETWORK ---> Select Method  

 

....   
 (vla-Select ssetObj mode corner1 corner2)
    (vlax-for obj   ssetObj
          (vlax-invoke obj 'Highlight T)
          )
...

What is the intent for highlighting the object msarqui?

 

 

0 Likes
Message 3 of 6

msarqui
Collaborator
Collaborator

Hy 

 

Nice to see you again.
when I said "highlight", I was meaning to have the same behaviour when I write on the command line "select" "p"
I want to "see" the grips of the object.

 

 

 

0 Likes
Message 4 of 6

pbejse
Mentor
Mentor
Accepted solution

@msarqui wrote:

Hy 

 

Nice to see you again.
....
I want to "see" the grips of the object. 


Hi there, nice to be seen 🙂

 

AFAICT,  you can use sssetfirst within a reactor to highlight the objects marcelo.

 

0 Likes
Message 5 of 6

msarqui
Collaborator
Collaborator
You know the kind of thing you already use but not really with full potential?
Thanks!
0 Likes
Message 6 of 6

john.uhden
Mentor
Mentor

I know nothing about vla-select, but if you use AutoLisp and create a selection set, like (setq ss (ssget ...)), you can (sssetfirst ss nil) and get exactly what you want.  I use it all the time.  One thing you cannot do with Lisp is to make a grip hot.  I think you need arx to do that.

John F. Uhden

0 Likes