Han-Object is Viewport (of any type)

From Vectorlab
Jump to: navigation, search


Checks if an object is a viewport of any kind: sheet layer, design layer or section. You need to load the routine H_IsDLVP before this. By Orso B. Schmid


{ Orso *********************************************** }
{ checks if h is viewport, both sheet or design layer, or section }
FUNCTION H_IsVPall(h: HANDLE): BOOLEAN;
	BEGIN
		IF h = NIL THEN
			H_IsVPall := FALSE
		ELSE
			H_IsVPall := (H_IsDLVP(h) | (GetType(h) = 122));
	END;