Pan and Modeless Window

Pan and Modeless Window

Civil3DReminders_com
Mentor Mentor
475 Views
1 Reply
Message 1 of 2

Pan and Modeless Window

Civil3DReminders_com
Mentor
Mentor

My Google search abilities are failing me.

 

I have a modeless window (WPF) and the user interacts with the window and temporary linework gets drawn in plan view and profile views (Civil 3D terms). Once the user is done they press Create and the temporary linework is replaced with long term linework. As a final step an AutoCAD table is inserted in the drawing. In doing so I ask the user to pick a point in the drawing. Unfortunately, users sometimes have the PAN command active (Press ESC or ENTER to exit, or right-click to display shortcut menu.) This prevents the user from being able to pick a point and the ESC and ENTER to exit stop working. I suspect the ZOOM command has the same problem.

 

Is there a way to see if the user has PAN or ZOOM active? Or clear any UI commands that may be active?

Civil Reminders
http://blog.civil3dreminders.com/
http://www.CivilReminders.com/
Alumni
0 Likes
Accepted solutions (1)
476 Views
1 Reply
Reply (1)
Message 2 of 2

ActivistInvestor
Mentor
Mentor
Accepted solution

Document.CommandInProgress tells you what command(s) are currently running.

 


@Civil3DReminders_com wrote:

My Google search abilities are failing me.

 

I have a modeless window (WPF) and the user interacts with the window and temporary linework gets drawn in plan view and profile views (Civil 3D terms). Once the user is done they press Create and the temporary linework is replaced with long term linework. As a final step an AutoCAD table is inserted in the drawing. In doing so I ask the user to pick a point in the drawing. Unfortunately, users sometimes have the PAN command active (Press ESC or ENTER to exit, or right-click to display shortcut menu.) This prevents the user from being able to pick a point and the ESC and ENTER to exit stop working. I suspect the ZOOM command has the same problem.

 

Is there a way to see if the user has PAN or ZOOM active? Or clear any UI commands that may be active?