Difference between revisions of "UpdateConstruction Command"

From GeoGebra Manual
Jump to: navigation, search
(command syntax: changed [ ] into ( ))
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>{{Manual Page|version=4.2}}</noinclude> {{command|scripting}}
+
<noinclude>{{Manual Page|version=5.0}}</noinclude> {{command|scripting}}
;UpdateConstruction[ ]
+
;UpdateConstruction( )
 
:Recomputes all objects (random numbers are regenerated). Same as {{KeyCode|F9}} or {{KeyCode|Ctrl+R}}.  
 
:Recomputes all objects (random numbers are regenerated). Same as {{KeyCode|F9}} or {{KeyCode|Ctrl+R}}.  
  
{{Note|1=If you want to refresh the view (e.g to remove [[tracing|traces]] from [[Graphics View]]) you can use  <code>[[ZoomIn Command|ZoomIn[1]]]</code> instead, which is the same as {{KeyCode|Ctrl+F}}. You may also need [[SetActiveView Command|SetActiveView[1]]] or [[SetActiveView Command|SetActiveView[2]]] first if you are using two Graphics Views.}}
+
:{{Note|1=If you want to refresh the view (e.g. to remove [[tracing|traces]] from [[File:Menu view graphics.svg|link=|16px]] [[Graphics View]]) you can use  <code>[[ZoomIn Command|ZoomIn(1)]]</code> instead, which is the same as {{KeyCode|Ctrl+F}}. You may also need [[SetActiveView Command|SetActiveView(1)]] or [[SetActiveView Command|SetActiveView(2)]] first if you are using two Graphics Views.}}
  
 
+
;UpdateConstruction( <Number of times> )
{{betamanual|version=5.0|1=
+
:Performs the command <code><nowiki>UpdateConstruction()</nowiki></code> several times.  
 
+
:{{example|1=<div><code><nowiki>UpdateConstruction(2)</nowiki></code> updates the construction twice (e.g. to record several dice throws to the spreadsheet). </div>}}
;UpdateConstruction[ <Number of times> ]
 
:Performs the command <code><nowiki>UpdateConstruction[ ]</nowiki></code> several times.  
 
:{{example|1=<div><code><nowiki>UpdateConstruction[2]</nowiki></code> updated the construction twice (eg to record several dice throws to the spreadsheet). </div>}}
 
 
 
}}
 

Latest revision as of 08:23, 12 October 2017


UpdateConstruction( )
Recomputes all objects (random numbers are regenerated). Same as F9 or Ctrl + R.
Note: If you want to refresh the view (e.g. to remove traces from Menu view graphics.svg Graphics View) you can use ZoomIn(1) instead, which is the same as Ctrl + F. You may also need SetActiveView(1) or SetActiveView(2) first if you are using two Graphics Views.
UpdateConstruction( <Number of times> )
Performs the command UpdateConstruction() several times.
Example:
UpdateConstruction(2) updates the construction twice (e.g. to record several dice throws to the spreadsheet).
© 2024 International GeoGebra Institute