i was looking at this wiki page, Responding to MicroStation Events - MicroStation Programming - Wiki - MicroStation Programming - Bentley Communities
and been searching through the api documentation but cant seem to find anything for tracking the cursor movement. I do not want to set up a privative or dgnelementset as i want to track the cursor location while the user is using an existing tool.
any help or push in the right direction??
Hi John,
John Drsek said:I do not want to set up a privative or dgnelementset as i want to track the cursor location while the user is using an existing tool.
it's not how MicroStation API works. You can track cursor movement in dynamics mode in your own command, but not in others.
To be precise, I assume you can do it in C++ API monitoring input queue, but it would not be simple task.
John Drsek said:any help or push in the right direction??
What (and why) do you want to achieve?
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
In PowerGEOPAK there was something called active chain control and curvilinear coordinates. that would provide that station/offset/elevation from where your cursor is but it was not a "tool" so it would keep running while using other tools. this video gives a quick overview.
Microstation Geopak Active Chain Control - YouTube
now in OpenRoads Designer there are some things that offer close to similar functionality, i was just seeing if it was something that could be created or not.
sounds like it might not be worth it.
John Drsek said:but it was not a "tool" so it would keep running while using other tools. this video gives a quick overview.
Nice and explanatory video.
John Drsek said:i was just seeing if it was something that could be created or not.
I guess it can be done, but C# is not the right tool. In C++, there are much more options what can be monitored.
I mentioned the option to monitor input queue, but there is also SetMotionFunction callback available. I did not try to implement such monitoring, so I am not sure what option is the best.
Regards,
Answer Verified By: John Drsek
as always thanks Jan,
probably going to let this idea go for now.