Skip to content

Latest commit

 

History

History
67 lines (54 loc) · 1.7 KB

File metadata and controls

67 lines (54 loc) · 1.7 KB

NextObj

Description

Function NextObj returns the next object in any list . If the end of the list is reached, the function returns NIL. This procedure can be used with other handle routines such as FirstIn3D,FInGroup, FirstInSymDef, or FLayer.

FUNCTION NextObj(h : HANDLE): HANDLE;
def vs.NextObj(h):
    return HANDLE

Parameters

Name Type Description
h HANDLE Handle to object, group, or symbol definition.

Examples

ComplexDialogLayout4

			gFolderN [gNumSymFolders] := GetName (itemHdl);
	  	 	getSymbolFolderNames (FInFolder (itemHdl));
	   END;
	END;
	itemHdl := NextObj (itemHdl);
END;

			END;
			slab_h := nextobj(slab_h);
		END ;
END;

SetRField(hobj,kRecName,kStatName,StatVal);
WHILE (hobj <> NIL) DO BEGIN
	SetPenFore(hobj,r,g,b);
	hobj := NextObj(hobj);
	END;
import vs

# Function NextObj returns the next object in any list.
h = vs.FSActLayer()  # handle to the first selected object on the active layer

objHandle = vs.NextObj(h)
if objHandle is not None:
    vs.Message('Created object handle: ' + str(objHandle))

See also in tutorials: 10. Iterate the Drawing and Report a Summary

See Also

Relative calls:

Version

Availability: from All Versions

Category