Notifications
Clear all

[Closed] gw: drawing in all viewports?

I can’t figure out how to draw in all viewports at one time.

My try:

disableSceneRedraw()
   redrawViews()
   
   for i=1 to viewport.numViews do
   (
      viewport.activeViewport = i
   	
      gw.Polyline (for j=1 to 10 collect random [-100,-100,-100] [100,100,100]) false	-- draw 10 random lines
   
      gw.enlargeUpdateRect #whole
      gw.updateScreen()
   )
   
   (messageBox "Lines done")
   enableSceneRedraw()

It works only when one viewport mode is active. If there is more viewports then nothing appears.