doc.Viewchanged event missing

I am doing some .net stuff in acad with transients, and want to use the doc.viewchanged event to catch mouse zooms or other zoom/pans.
Looks like that is only in the acad api.
Any workaround for that in bcad?
thanks

Comments

  • Roy Klein Gebbinck
    edited May 2018

    There are two variables that change with zooms and pans: VIEWSIZE and VIEWCTR respectively. But monitoring these with a SysVar reactor does not work as they never trigger an event (at least not in the Lisp API).
    What does work is monitoring changes to the ActiveViewport object. Its Height and Center properties match the mentioned variables.

  • hmm, thanks and I see now that is how it was done before the event was available in acad.
    I was wrong though, doc.viewchanged is in bricscad .net api, V18 at least.
    I think maybe not in previous versions which I actually don't care about anymore so will comment out.
    thx

This discussion has been closed.