Han-Object is Sheet Layer

From Vectorlab
Jump to: navigation, search


Checks if an object is a sheet layer. By Orso B. Schmid


{ Orso *********************************************** }
{ checks if h is sheet layer }
FUNCTION H_IsSheetLayer(layH: HANDLE): BOOLEAN;
	BEGIN
		H_IsSheetLayer := FALSE;
		IF layH <> NIL THEN
			H_IsSheetLayer := ((GetType(layH) = 31) & (getObjectVariableInt(layH, 154) = 2));
	END;