Sssetfirst grip handles not visible

Sssetfirst grip handles not visible

andkal
Collaborator Collaborator
905 Views
2 Replies
Message 1 of 3

Sssetfirst grip handles not visible

andkal
Collaborator
Collaborator

Hallo
Im writing a lisp program that is supposed to make some action on selected objects and leave them selected. The problem is that the grip handles of selected objects are not visible. I found that I have to leftclick somewhere in viewport or regenerate view to make them appear. Is there a way to simulate left clck in autolisp or is there some better way to make them visible not using mouseclock or REGEN (it makes a lag).

Here is a part of the code I have at the end of the routine:

    (setq count 0)
    (repeat (sslength sset2)
        (vlax-invoke-method (vlax-ename->vla-object (ssname sset2 count)) 'Highlight :vlax-true)
        (setq count (1+ count))
    );repeat
    (sssetfirst nil) 
    (sssetfirst nil sset2) 

3.JPG4.JPG 


• www.autolisps.blogspot.com - Productivity plugins for Autocad and Autocad MEP
• Autodesk AppStore
0 Likes
Accepted solutions (1)
906 Views
2 Replies
Replies (2)
Message 2 of 3

ВeekeeCZ
Consultant
Consultant
Accepted solution

That typically happens when you have (allow) objects pre-selected.

You need to unhighlight that. This might work.

 

 

 

(defun c:test ()

  (if (setq sset2 (ssget "_I"))
    (sssetfirst nil)
    (setq sset2 (ssget)))
    (sssetfirst nil sset2)
  )

 

 

 
Message 3 of 3

andkal
Collaborator
Collaborator

Thanks, It solves the problem.


• www.autolisps.blogspot.com - Productivity plugins for Autocad and Autocad MEP
• Autodesk AppStore
0 Likes