Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

Notification for model orientation change

RomanKhvostikov

New member
Hi,


Is there any kind of such notification?


I mean, I need to receive some notification every time model changes is being panned or rotated or zoomed.


How dow I get it?


P.S.


There is one in SolidWorks API, but I failed to find any kind of it in ProE/Toolkit.


Thanks
 
Hello Roman,


As per my knowledge you can not get notification to all possible cases.You are right there is no notification functions avail for Zoom and Pan of the model.


You can't get it done with notification API's in Pro-Toolkit.


If you can able to perform any notification let share to us.


Kishore V
 
Roman,


Use the following notifications to check if your model orientation has been changed. You can then store a previous and a current view matrix.


/* ProMdlDisplayPreAction */
PRO_MDL_DISPLAY_PRE = 25,

/* ProMdlDisplayPostAction */
PRO_MDL_DISPLAY_POST = 26,



This answer was provided real time right from the Long Beach Customization TC meeting! Enjoy!
Edited by: williaps
 
This is correct. I have a program currently using the PRO_MDL_DISPLAY_PRE. My warning is to be aware just how often this event triggers. As you pan it is triggered many, manytimes per second. It can slow your performance.
 
Thanks to all!


Actually, I have already implemented exactly that way. I compare matrices in PRO_MDL_DISPLAY_PRE notification handler and, if the change, raise my own event.
 

Sponsor

Back
Top