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.
// 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 );
| 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. |
USAGE: Create a shape with an explicit dimension and begin editing it.
editor.CreateShape( layer, point3d, TGIS_ShapeType.Point, TGIS_DimensionType.XY )