4.2.2. Example 2: Creating a Simple Subroutine

This example defines a simple subroutine to make two TURBO SURFACE objects at specified locations. The subroutine is used in the next example.

!sub makeTurboSurfaces {
USER DEFINED:
	TURBO SURFACE:Span Surface
		Draw Faces = Off
		Draw Lines = On
		Variable = Span Normalized
		Value = 0.25
		Visibility = On
	END

	TURBO SURFACE:Theta Surface
		Draw Faces = Off
		Draw Lines = On
		Variable = Theta
		Value = 300 [degree]
		Visibility = On
	END
END
!}

You can execute this subroutine by typing !makeTurboSurfaces(); in the Command Editor dialog box.