Create Method (ObjectId, ObjectId)

Creates a new instance of a ParcelAreaLabel on the specified Parcel with the specified label style.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.2.3892.0

Syntax

C#

public static ObjectId Create(
	ObjectId parcelId,
	ObjectId labelStyleId
)

Visual Basic

Public Shared Function Create ( _
	parcelId As ObjectId, _
	labelStyleId As ObjectId _
) As ObjectId

Visual C++

public:
static ObjectId Create(
	ObjectId parcelId, 
	ObjectId labelStyleId
)

Parameters

parcelId
Type: ObjectId
The ObjectId of the Parcel in which the label is located.
labelStyleId
Type: ObjectId
The ObjectId of ParcelArea style (object type LabelStyle).

Return Value

The ObjectId of the newly created ParcelAreaLabel.

Exceptions

ExceptionCondition
System.ArgumentException Thrown when parcelId or labelStyleId is invalid.

See Also