Creates a new instance of PipeLabel on a specified Pipe with the specified label style.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.4.2516.0
Syntax
C# |
---|
public static ObjectId Create(
ObjectId pipeId,
double ratio,
ObjectId labelStyleId
) |
Visual Basic |
---|
Public Shared Function Create ( _
pipeId As ObjectId, _
ratio As Double, _
labelStyleId As ObjectId _
) As ObjectId |
Visual C++ |
---|
public:
static ObjectId Create(
ObjectId pipeId,
double ratio,
ObjectId labelStyleId
) |
Parameters
- pipeId
- Type: ObjectId
The ObjectId of Pipe on which the label is located.
- ratio
- Type: System..::..Double
The relative position of the label to the pipe.
- labelStyleId
- Type: ObjectId
The ObjectId of a PipeLabel style to use.
Remarks
Exceptions
Exception | Condition |
---|
System..::..ArgumentException |
Thrown when:
- The pipeId or labelStyleId is invalid.
- The ratio is out of the range 0-1.
|
See Also