Jump to content

Persistent highlight of object during dialog

Recommended Posts

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?

Share this post

Link to post

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. 

Share this post

Link to post


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!

Share this post

Link to post

Dialogs should draw the new objects before they are closed.  You may need to issue a Redraw() or RedrawAll() to see the new objects.  

Share this post

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114


© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.