Skip to content

Latest commit

 

History

History
57 lines (45 loc) · 1.47 KB

NextSymDef.md

File metadata and controls

57 lines (45 loc) · 1.47 KB

NextSymDef

Description

Function NextSymDef returns a handle to the next definition in the symbol library after the referenced symbol. If the end of the list has been reached, the function returns NIL.

FUNCTION NextSymDef(symHd : HANDLE): HANDLE;
def vs.NextSymDef(symHd):
    return HANDLE

Parameters

Name Type Description
symHd HANDLE Handle to symbol definition in library.

Remarks

If the symHd passed as argument is a symbol folder, the list ignores the symbol definitions. See: FSymDef.

Examples

	h := NextSymDef( h );
END;

BEGIN
	temp_i := InsertImagePopupObjectItem(dialogID,PreviewItem,getSDName(hSymdef));
	hSymDef := nextsymdef(hSymdef);
END;

				IF GetName(ItemHdl) = FoldName THEN FoldHandle := ItemHdl;
	  	 		FindFolderHandle (FInFolder (itemHdl), FoldName, FoldHandle);
			END;
	END;
	itemHdl := NextSymDef (itemHdl);
END;
import vs

# Function NextSymDef returns a handle to the next definition in the symbol
# library after the referenced symbol.
symHd = vs.FSActLayer()  # handle to the first selected object on the active layer

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

See also in tutorials: 28. Symbol Instance Schedule

Version

Availability: from All Versions

Category