InputPlugin, control if Navisworks select or not the part picked
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have an InputPlugin that allows the user to drag the virtual objects our main plugin render.
To do so I override in our InputPlugin:
- MouseDown: start drag
- MouseDrag: update rendering the part if position of the mouse has changed
- MouseUp: end drag and save changes
Very powerful.
However I have an issue.
Seems Navisworks will handle the MouseDown if I return false and thus change the selection, as demonstrated when I return true on my MouseDown override.
What I would like to achieve is to NOT select the part below if the user drag the part, but still allow Navisworks to select the part if the user does not drag.
I tried to change the return values of MouseUp to achieve this but will no effect.
So I can either totally disable the selection if user drag my virtual part OR always select the part even if user just want to select it and not drag the virtual part.
Any suggestions?
PS: I could try to force Navisworks to select the part as part of my MouseUp bit I worry this could create some ugly deadlocks 😉