Markus Barrera-Kolb Posted December 15, 2015 Share Posted December 15, 2015 I've got an old script that toggles the display of screen objects – however, in 2016 the display doesn't update with the script until I manually set the render mode again (whether I select the same render mode or a different one). I used the script a lot in previous version of VW and would love to keep using it in 2016. Does anyone know how I might amend the script to automatically select the current render mode again and thus force a redraw (I've already tried REDRAW and REDRAWALL, to no avail). Thanks! Here's the script I've been using: PROCEDURE Toggle_DisplayScreenObj; BEGIN SetPref(95,NOT GetPref(95)); END; RUN (Toggle_DisplayScreenObj); Quote Link to comment
rDesign Posted December 15, 2015 Share Posted December 15, 2015 This sounds like the same bug that billtheia was running into with Vw2015 over at this thread. I don't think he was able to resolve it and a bug report was filed. Quote Link to comment
Markus Barrera-Kolb Posted December 15, 2015 Author Share Posted December 15, 2015 (edited) Yup, sure enough, that's exactly the same thing. I've looked through the SDK documentation and haven't been able to find a pref code to set the render mode, only the default render mode. Setting the render mode again might do the trick, as might (re)setting the Layer Option... Anyone know how to poll what the current Layer Option is and then set it to the same value again? Thanks! Edited December 15, 2015 by Markus Barrera-Kolb Quote Link to comment
Markus Barrera-Kolb Posted December 15, 2015 Author Share Posted December 15, 2015 Yay, trial and error yielded the following successful script – forces a redraw and makes the toggle for showing/hiding screen objects work: PROCEDURE Toggle_DisplayScreenObj; BEGIN SetPref(95,NOT GetPref(95)); SetPref(506, GetPref(506)); END; RUN (Toggle_DisplayScreenObj); 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.