lext_add_lex_prog_object_c (ul_lextools)

	status.i4.v = lext_add_lex_prog_object_c(command_buffer.i1a.r,
						 buffer_length.i4.v,
						 object_type.i4.v,
						 object_data.g.v)

	This routine adds an object to a Lex Prog command buffer.  This
	buffer can be saved by a call to lext_save_command_file_c.

	command_buffer	Lex Prog command buffer
	buffer_length	length of command buffer in bytes
	object_type	type of object to insert
			(LEXT_LP_LEXDRAW -> Lex Draw image object,
			 LEXT_LP_ANALOG -> analog device object,
			 LEXT_LP_DIGITAL -> digital status object,
			 LEXT_LP_DIGITAL_MASK -> digital mask object,
			 LEXT_LP_TIME -> date and time object,
			 LEXT_LP_ERROR_DISPLAY -> error display object,
			 LEXT_LP_CLOCK -> clock event object,
			 LEXT_LP_POSITION -> positional object,
			 LEXT_LP_CALLABLE -> callable object,
			 LEXT_LP_NEW_IMAGE_BUTTON -> new image button object,
			 LEXT_LP_URL -> URL object,
			 LEXT_LP_START_PROGRAM -> start program object,
			 LEXT_LP_STATE -> state object,
			 LEXT_LP_DEVICE_VIEWER -> device viewer object,
			 LEXT_LP_SCRIPT -> script object,
			 LEXT_LP_EXPRESSION -> arithmetic expression object,
			 LEXT_LP_CUSTOM_SCALED -> custom scaled analog object,
			 LEXT_LP_NUMERIC_LABEL -> numeric label object,
			 LEXT_LP_TIMER_EVENTS -> timer events object,
			 LEXT_LP_TEXT -> text string object,
			 LEXT_LP_IMAGE -> embedded image object,
			 LEXT_LP_PLOT -> plot object,
			 LEXT_LP_ARRAY_PLOT -> array plot object,
			 LEXT_LP_LINE -> line object,
			 LEXT_LP_BOX -> box object,
			 LEXT_LP_CIRCLE -> circle object)
	object_data	object definition data
			(LEXT_LP_LEXDRAW -> structure of type
					    LEXT_LP_LEXDRAW_DATA,
			 LEXT_LP_ANALOG -> structure of type
					   LEXT_LP_ANALOG_DATA,
			 LEXT_LP_DIGITAL -> structure of type
					    LEXT_LP_DIGITAL_DATA,
			 LEXT_LP_DIGITAL_MASK -> structure of type
						 LEXT_LP_DIGITAL_MASK_DATA,
			 LEXT_LP_TIME -> structure of type
					 LEXT_LP_TIME_DATA,
			 LEXT_LP_ERROR_DISPLAY -> structure of type
						  LEXT_LP_ERROR_DISPLAY_DATA,
			 LEXT_LP_CLOCK -> structure of type
					  LEXT_LP_CLOCK_DATA,
			 LEXT_LP_POSITION -> structure of type
					     LEXT_LP_POSITIONAL_DATA,
			 LEXT_LP_CALLABLE -> structure of type
					     LEXT_LP_CALLABLE_DATA,
			 LEXT_LP_NEW_IMAGE_BUTTON -> structure of type
						  LEXT_LP_NEW_IMAGE_BUTTON_DATA,
			 LEXT_LP_URL -> structure of type LEXT_LP_URL_DATA,
			 LEXT_LP_START_PROGRAM -> structure of type
						  LEXT_LP_START_PROGRAM_DATA,
			 LEXT_LP_STATE -> structure of type LEXT_LP_STATE_DATA,
			 LEXT_LP_DEVICE_VIEWER -> structure of type
						  LEXT_LP_DEVICE_VIEWER_DATA,
			 LEXT_LP_SCRIPT -> structure of type
					   LEXT_LP_SCRIPT_DATA,
			 LEXT_LP_EXPRESSION -> structure of type
					       LEXT_LP_EXPRESSION_DATA,
			 LEXT_LP_CUSTOM_SCALED -> structure of type
						  LEXT_LP_CUSTOM_SCALED_DATA,
			 LEXT_LP_NUMERIC_LABEL -> structure of type
						  LEXT_LP_NUMERIC_LABEL_DATA,
			 LEXT_LP_TIMER_EVENTS -> structure of type
						 LEXT_LP_TIMER_EVENTS_DATA,
			 LEXT_LP_TEXT -> structure of type LEXT_LP_TEXT_DATA,
			 LEXT_LP_IMAGE -> structure of type
					  LEXT_LP_IMAGE_DATA,
			 LEXT_LP_SCREEN_SIZE -> structure of type
						LEXT_LP_SCREEN_SIZE_DATA,
			 LEXT_LP_PLOT -> structure of type
					 LEXT_LP_PLOT_DATA,
			 LEXT_LP_ARRAY_PLOT -> structure of type
					       LEXT_LP_ARRAY_PLOT_DATA,
			 LEXT_LP_LINE -> structure of type
					 LEXT_LP_LINE_DATA,
			 LEXT_LP_BOX -> structure of type
					LEXT_LP_BOX_DATA,
			 LEXT_LP_CIRCLE -> structure of type
					   LEXT_LP_CIRCLE_DATA)

	This function returns ACNET status values as follows:

	OK			success
	CLIB_INVARG		invalid object type or data
	CLIB_INVSIZ		command buffer overflow

	This function requires the following include files:

	ul_lextools_h:lextuti_h, acnet_errors_h

	Related functions:

	lext_save_command_file_c

	C/C++ usage:

	char			command_buffer[8192];
	int			status;
	int			buffer_length = sizeof(command_buffer);
	int			object_type = LEXT_LP_TIME;
	LEXT_LP_TIME_DATA	time_data;

	time_data.x_pos = 1;
	time_data.y_pos = 1;
	time_data.rotation = 0;
	time_data.color = GREEN;

	status = lext_add_lex_prog_object_c(command_buffer,buffer_length,
					    object_type,(void *) &time_data);