You need to write your script using a text editor like notepad. The script must have the extension msk. The script can have more than one sketch and it can write to more than one sketch file. The default directory for the scripts is MyDocument > Mathsketch2>Scripts You simply define the output file, the number of steps (points on the sketch) and the formula for x y and z. Bellow is the command reference: REM Ignore the rest of the line, used for comments.outfile = “<EPS file name>” The file name should end up with .eps, it can be a full path name but if it is not the default directory will be MyDocument>Mathsketch2>Sketchplot.x = <formula>More about formula.plot.y = <fomula>More about formula.plot.z = <formula>More about formula.plot.steps = <number of points> number of points in the sketch.plot.clones = <number of clonnes>Number of clones.draw.plot process the sketch and write it to the file defined in the outfile clause.Special variables: step: The point number in the sketch. degree: The point number used as degree for the sin, cos and tan functions clone_seq: The clone number clone_degree: The clone number used as for the sin,cos and tan functions. to_radian : Convert degrees to radian. eg plot.x = sin( degree + (45 * to_radian)).
Mathematical expressions containing +, - , *, /, ^ and () can be used as well as the following built in functions: ABS() returns an absolute valueATAN() calculates the arctangent of a value (given in radians)*COS() calculates the cosine of a value (given in radians)*EXP() returns the exponential of a valueLN() returns the natural log of a valueROUND() returns the value rounded to the nearest whole numberSIN() calculates the sine of a value (given in radians)* SQRT() returns the square root of a valueTRUNC() truncates a real number to an integer* Multiply the radians value by the constant to_radians to turn it to radians e.g. cos(90 * to_radian).