Gelde-Aart Posted June 14, 2018 Share Posted June 14, 2018 Is it possible to have a persistant higlight of objects like with the Subtract Solids command dialog, whereas one can traverse through the selected objects during the dialog? Quote Link to comment
JBenghiat Posted June 14, 2018 Share Posted June 14, 2018 No, you need SDK functions for that. The only vs/py function for highlighting is TrackObject() You can use regular selection highlighting while in the dialog as well as use temporary geometry. Your easiest option might be to get the bounding box of each object and draw a colored rectangle using the coordinates. The begin/endContext commands help keep undo clean for temporary geometry. Quote Link to comment
Gelde-Aart Posted June 18, 2018 Author Share Posted June 18, 2018 Thanks! What I'm after is from a PIO, using a button to show a dialog like the Subtract solid, to 'highlight' which part of the object will be edited. I already thought about a temporary object, but it only got created after the dialog closed... perhaps you know a way to create a temporary rectangle within the Begin and Endcontext()? A second option would be to use a SymbolDisplayControl within the dialog, but somehow that seems like an overkill... Any Ideas for the first option are welcome! Quote Link to comment
JBenghiat Posted June 18, 2018 Share Posted June 18, 2018 Dialogs should draw the new objects before they are closed. You may need to issue a Redraw() or RedrawAll() to see the new objects. Quote Link to comment
Gelde-Aart Posted June 20, 2018 Author Share Posted June 20, 2018 Thanks! During the dialog I'm using the Redraw() to regen the objects and it works! Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.