Jump to content
Developer Wiki and Function Reference Links ×

script for (re)setting render mode?


Recommended Posts

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);

Link to comment

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 by Markus Barrera-Kolb
Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...