Share

PipeLabel.Create(ObjectId, Double) Method

Creates a new instance of a PipeLabel on the specified Pipe using the default label style.



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

Syntax

C#

public static ObjectId Create(
	ObjectId pipeId,
	double ratio
)

VB

Public Shared Function Create ( 
	pipeId As ObjectId,
	ratio As Double
) As ObjectId

C++

public:
static ObjectId Create(
	ObjectId pipeId, 
	double ratio
)

Parameters

pipeId  ObjectId
The ObjectId of Pipe on which the label is located.
ratio  Double
The relative position of the label to the pipe.

Return Value

ObjectId

Exceptions

ExceptionCondition
ArgumentException Thrown when:
  • The pipeId is invalid.
  • The ratio is out of the range 0-1.

Remarks

The ratio should be in the range [0, 1].

See Also

Reference

Was this information helpful?