David Bengali Posted April 23, 2020 Share Posted April 23, 2020 Apologies for the cross post; I'm not entirely sure where to post general questions about Vectorworks scripting with the Vectorscript and Python categories separated. I'm wondering if there is a way from within a scripted plug in object to detect that the user has changed the zoom level of the document in order to trigger a redraw or other action whenever the zoom changes? I know how to get the current zoom level, but I don't know how to be alerted that it has changed. Quote Link to comment
Julian Carr Posted April 23, 2020 Share Posted April 23, 2020 I guess the first question is why does your PIO need to reset when the zoom level changes? Generally this should not be necessary. Ignoring that for the moment, if this were possible it could only work in an event enabled PIO using SetObjPropVS(). I don't have the full list at hand, but this is the function that allows PIOs to reset if there are layer scale or layer elevation changes, for example. Quote Link to comment
Pat Stanford Posted April 23, 2020 Share Posted April 23, 2020 Redirect this thread to: Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.