ArcObjects Library Reference  (Schematic)    

INgProjectBuilder.CreateElementType Method

Creates a new element type named 'eltTypeName' whose type is 'Type'.

[Visual Basic 6.0]
Function CreateElementType(
    ByVal eltTypeName As String, _
    ByVal Type As esriNgElementTypeEnum, _
    [ByVal Parent As INgElementType], _
    [ByVal createGroup As Boolean] _
) As INgElementType
[Visual Basic .NET]
Public Function CreateElementType ( _
    ByVal eltTypeName As String, _
    ByVal Type As esriNgElementTypeEnum, _
    [ByVal Parent As INgElementType], _
    [ByVal createGroup As Boolean] _
) As INgElementType
[C#]
public INgElementType CreateElementType (
    string eltTypeName,
    esriNgElementTypeEnum Type,
    INgElementType Parent,
    bool createGroup
);
[C#]

Optional Values

Parent   Supply 0 as a default value.
createGroup   Supply true as a default value.
[Java]
public INgElementType createElementType (
    String eltTypeName,
    esriNgElementTypeEnum Type,
    INgElementType Parent,
    Boolean createGroup
)
throws
    IOException,
    AutomationException
[C++]
HRESULT CreateElementType(
  BSTR eltTypeName,
  esriNgElementTypeEnum Type,
  INgElementType* Parent,
  VARIANT_BOOL createGroup,
  INgElementType** pVal
);
[C++]

Parameters

eltTypeName [in]

  eltTypeName is a parameter of type BSTR

Type [in]

  Type is a parameter of type esriNgElementTypeEnum

Parent [in, optional, defaultvalue(0)]

  Parent is a parameter of type INgElementType

createGroup [in, optional, defaultvalue(VARIANT_TRUE)]

  createGroup is a parameter of type VARIANT_BOOL

pVal [out, retval]

  pVal is a parameter of type INgElementType

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Schematics Extension.

Description

This element type can inherit the ‘parent’ element type (optional parameter). The createGroup parameter specifies if the associated element group must be created or not. The default value for the createGroup parameter is True; that is by default, all newly created element type is directly related to its own graphic group.

See Also

INgProjectBuilder Interface | INgProject.ElementTypes Property

Example

Programming with INgNodeOnLink and INgSubLink interfaces - Example

 


Feedback Send feedback on this page