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| Name | Type | Description |
|---|---|---|
| h | HANDLE | Handle to object, group, or symbol definition. |
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
Relative calls:
- NextObj | PrevObj
- FObject | LObject
- FSActLayer | LSActLayer
- FSObject | LActLayer
- NextDObj | PrevDObj
- NextSObj | PrevSObj
Availability: from All Versions