User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.igis_editor.createshape_2_itgis_layerabstract_itgis_point3d_tgis_shapetype_tgis_dimensiontype

Table of Contents

IGIS_Editor.CreateShape_2 method

DK for ActiveX | TatukGIS_XDK11.IGIS_Editor.CreateShape_2 | Methods | Properties

Creates a new shape with the specified dimension in the layer and starts editing it.

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

Syntax

// C#
public void CreateShape_2(
  ITGIS_LayerAbstract _layer,
  ITGIS_Point3D _ptg,
  TGIS_ShapeType _type,
  TGIS_DimensionType _dim
);
' VisualBasic
Public Sub CreateShape_2(
  ByVal _layer As ITGIS_LayerAbstract,
  ByVal _ptg As ITGIS_Point3D,
  ByVal _type As TGIS_ShapeType,
  ByVal _dim As TGIS_DimensionType
)
// Oxygene
public
  procedure CreateShape_2(
    _layer : ITGIS_LayerAbstract;
    _ptg : ITGIS_Point3D;
    _type : TGIS_ShapeType;
    _dim : TGIS_DimensionType
  );

Parameters

Name Type Description
_layer ITGIS_LayerAbstract Layer that will own the new shape.
_ptg ITGIS_Point3D Starting 3D point of the new shape in Viewer coordinates.
_type TGIS_ShapeType Shape type to create; it must be supported by the layer. If TGIS_ShapeType.Unknown, the layer default shape type is used.
_dim TGIS_DimensionType Shape dimension to create; it must be supported by the layer. If TGIS_DimensionType.Unknown, the layer default dimension is used.

Remarks

USAGE: Create a shape with an explicit dimension and begin editing it.

editor.CreateShape(         layer,         point3d,         TGIS_ShapeType.Point,         TGIS_DimensionType.XY       )

2026/09/20 23:44

Page Tools