We often give students drawing exercises: "Draw a point, draw a line, draw a rectangle...", so why shouldn't we in GeoGebra? Drawing in GeoGebra is no problem, but controlling is. The problem is the syntax in controlling an object that isn't created yet. While working e.g. with polygons you could eventulally do with commands as [b]Execute[{"SetColor[poly"+nr+",red]"}][/b] to give feedback in coloring, for you know in English new created polygons will be called poly1, poly2, etc. But this command will be recognised only by users whose language setting is English, since e.g. in German a new polygon is called Vieleck1, in Italian poli1 etc.[br]An easier alternative is to create a polygon which you have to modify to fit the exercise. In this option language setting is no problem and you don't have to struggle with complicated Execute-syntaxes in scripts.
In next exercise you have to draw a point with given coordinates. Watch how it works and then make it yourself following the given Construction Steps.
[table][tr][td]1[/td][td][/td][td]Type the command [b]a = RandomBetween[-4, 4][/b] to create a number a.[/td][/tr][tr][td]2[/td][td][/td][td]Type the command [b]b = RandomBetween[-4, 4][/b] to create a number b.[/td][/tr][tr][td]3[/td][td][/td][td]Type the command [b]Sol = (a, b)[/b] to create a point Sol.[/td][/tr][tr][td]4[/td][td][/td][td]Type the command [b]P = (-5, 5)[/b] to create a point P out of the range of the coordinates of Sol.[br]Rightclick on it to set its dynamic colors (see below).[/td][/tr][tr][td]5[/td][td][icon]/images/ggb/toolbar/mode_buttonaction.png[/icon][/td][td]Select the Button Tool and create a button with caption [b]new exercise[/b] and scripting commands[br][b]UpdateConstruction[][/b] to recalculate a and B.[br][b]SetValue[P,(-5,-5)][/b] to set back the point P to its initial position[br][/td][/tr][tr][td]6[/td][td][icon]/images/ggb/toolbar/mode_text.png[/icon][/td][td]Create the dynamic text Drag P so that [b]P =(a, b)[/b] and select a and b in the list of available objects.[/td][/tr][/table][br][u]Hint[/u]: Open the Toggle Style Bar of the Graphics and set the Point capture style to Fixed to Grid.