C.10.5.2. Insert100psi.xml

<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml version="1.0"?>
<simulation-wizard version="1.0">
	<object-groups>
		<object-group name="pressure">
			<object-type class="id_Load" type="id_SurfacePressure" />
		</object-group>
	</object-groups>
	<strings>
		<language xml:lang="en-us">
			<string id="Insert100psi_Caption">
				Insert Pressure
			</string>
			<string id="Insert100psi_Message">
				Use the Structural button to insert a Pressure load.
				Enter 100 psi for Magnitude.
			</string>
		</language>
	</strings>
	<tasks>
		<task id="Insert100psi" disable-if-missing="geometry" check-ambiguity="environment">
			<update-event>
				<if><object type="pressure" condition="does-not-exist"/>
					<then>
						<set-status status="incomplete"/>
						<stop/>
					</then>
				</if>
				<if><object type="pressure" condition="exists" state="under-defined"/>
					<then>
						<set-status status="undefined"/>
						<stop/>
					</then>
				</if>
				<set-status status="complete"/>
			</update-event>
			<activate-event>
				<if><object type="pressure" condition="exists" state="under-defined"/>
					<then>
						<select-first-object type="pressure" state="under-defined"/>
						<select-first-undefined-field/>
						<display-details-callout message="Insert100psi_Message" />
						<stop/>
					</then>
				</if>
				<if><level type="environment" condition="is-not-selected"/>
					<then>
						<select-first-object type="environment"/>
					</then>
				</if>
				<click-button toolbar="DS_graphics" button="Surface"/>
				<display-toolbar-callout toolbar="Context" button="Structural" 
             message="Insert100psi_Message" />***
			</activate-event>
		</task>
	</tasks>
</simulation-wizard>

Note:  ***Note that it was necessary to "word wrap" the long line of code in the above example.