Lisp: Selected objects are not immediately visible

Lisp: Selected objects are not immediately visible

АлексЮстасу
Advisor Advisor
648 Views
8 Replies
Message 1 of 9

Lisp: Selected objects are not immediately visible

АлексЮстасу
Advisor
Advisor

Hi,

 

XDTOOLS_SELAPPS.lsp strangely select objects - this is the routine of selecting objects with the specified XData.
If there was a pre-selection of objects, the objects found by the routine do not have their grips highlighted. But they become visible if click in the graphical window.
How to fix it?

 


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

0 Likes
Accepted solutions (1)
649 Views
8 Replies
Replies (8)
Message 2 of 9

ВeekeeCZ
Consultant
Consultant
Accepted solution

Try this.

The point is to use (sssetfirst nil nil) ONLY when objects were preselected.

 

Edit: code updated. @АлексЮстасу 

Message 3 of 9

АлексЮстасу
Advisor
Advisor

Thanks for the reply!

 

Unfortunately, this method did not help.
When preselected, the grips are still not immediately highlighted.

 


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

0 Likes
Message 4 of 9

ВeekeeCZ
Consultant
Consultant

Post simple test dwg and translate lisp to eng-latin to be able to test it.

0 Likes
Message 5 of 9

АлексЮстасу
Advisor
Advisor

All the messages were and are on googlenglish.
Yes, I thought it would be better to attach a test file as well...

 


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

0 Likes
Message 6 of 9

ВeekeeCZ
Consultant
Consultant

Ok, the code has been updated. The point is the same.

Message 7 of 9

АлексЮстасу
Advisor
Advisor

Yes! Bravo!
Thank you!
Grips are visible after selection in all options at once.

 


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

0 Likes
Message 8 of 9

АлексЮстасу
Advisor
Advisor

I'm not a programmer, and I'm writing by hearsay!

 

It's not about (sssetfirst nil) after all.
If exclude this line in your version, the result will be the same - grips are always highlighted.

And if I use another version - with "\nSelect objects <All>:" - then there's no problem with grips highlighting either.
I have attached this version here.

 

The real cause is unknown...

 

But this doesn't mean that I'm not grateful to you for your help!  🙂

 


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

0 Likes
Message 9 of 9

ВeekeeCZ
Consultant
Consultant

If you pre-select objects that all are lately filtered out (all have no xdata), they stay highlighted.