		<!-- Start code for DeskProto button, by Delft Spline Systems -->
		<script>
			function CallDeskProto()
			{
				var Today = new Date();
				var Year = Today.getFullYear();
				var Month = Today.getMonth() + 1;
				var Day = Today.getDate();
				var Hour = Today.getHours();
				var Minute = Today.getMinutes();
				var Second = Today.getSeconds();

				var tempdir = moi.filesystem.getTempDir();

				// Extra quotes are needed as temp dir may include a space.
				// ExportFileName with Date and Time
				var strFileName = "\"" + tempdir + "MoI-file-" + Year + Month + Day + "-" + Hour + Minute + Second + ".stl\"";

				var strProgName = "C:\\Program Files\\DeskProto 7.0\\deskproto.exe";

				// Save as STL file
				moi.geometryDatabase.saveAs( strFileName );
				// Start DeskProto with this STL file as command line parameter

				moi.filesystem.shellExecute( strProgName, strFileName );
			}
		</script>

		<moi:BigSpacer/>

		<moi:CommandButton icon="icons/DeskProtoIcon.png" onclick="CallDeskProto()"><moi:Text textid="Export"/></moi:CommandButton>

		<!-- End code for DeskProto button, by Delft Spline Systems -->