User Tools

Site Tools


Table of Contents

ITGIS_LayerVector.GetNewUid method

DK11 for ActiveX | TatukGIS_XDK11.ITGIS_LayerVector.GetNewUid | Methods | Properties

Gets the Uid for a new shape.

Available also on: Delphi | .NET | Java | Python.


// C#
public OleVariant GetNewUid();
' VisualBasic
Public Function GetNewUid() As OleVariant
// Oxygene
  function GetNewUid : OleVariant;


Type Description
OleVariant 0 if Uid not assigned (in fact, only for pixel layers) or Uid value.


Use this method to find the Uid for a new shape. It simply uses GetLastUid method to determine the next available id. See example in GetLastUid.

When using this operation, never call any function which uses FindFirst..FindNext (i.e., any function which iterates through the shapes using it). So never use inside an operation like Locate etc.

2022/11/16 01:10

Page Tools