Creates a region with the given region name and the assembly object id.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.4.2516.0
Syntax
C# |
---|
[ObsoleteAttribute("Use Autodesk.Civil.DatabaseServices.BaselineRegionCollection.Add instead.",
false)]
public BaselineRegion AddRegion(
string regionName,
ObjectId assemblyId
) |
Visual Basic |
---|
<ObsoleteAttribute("Use Autodesk.Civil.DatabaseServices.BaselineRegionCollection.Add instead.", _
False)> _
Public Function AddRegion ( _
regionName As String, _
assemblyId As ObjectId _
) As BaselineRegion |
Visual C++ |
---|
public:
[ObsoleteAttribute(L"Use Autodesk.Civil.DatabaseServices.BaselineRegionCollection.Add instead.",
false)]
BaselineRegion^ AddRegion(
String^ regionName,
ObjectId assemblyId
) |
Parameters
- regionName
- Type: System..::..String
Name of the created region.
- assemblyId
- Type: ObjectId
Object id of the assembly used to create the region.
Remarks
Exceptions
Exception | Condition |
---|
System..::..ArgumentException |
Thrown when the assembly id is invalid.
|
System..::..InvalidOperationException |
Thrown when the last BaselineRegion's EndStation is equal to Baseline's EndStaion.
|
See Also