Share

IManagedCenterlines.Add Method

Method that creates a new centerline. The centerline created with this method is kRegularCenterline type.

Namespace:  Autodesk.iLogic.Interfaces
Assembly:  Autodesk.iLogic.Interfaces (in Autodesk.iLogic.Interfaces.dll) Version: 30.0

Syntax

VB

Function Add ( 
	name As String,
	centerEntities As IEnumerable(Of Object),
	Optional centermarkStyle As CentermarkStyle = Nothing,
	Optional layer As Layer = Nothing,
	Optional closed As Boolean = false
) As IManagedCenterline

C#

IManagedCenterline Add(
	string name,
	IEnumerable<Object> centerEntities,
	CentermarkStyle centermarkStyle = null,
	Layer layer = null,
	bool closed = false
)

Parameters

name
Type: System.String
The name of the managed centerline.
centerEntities
Type: System.Collections.Generic.IEnumerable(Object)
Input ObjectCollection object that contains the set of entities that define the points the centerline passes through. Valid objects for input are GeometryIntent objects that reference circular or elliptical drawing curves, GeometryIntent objects that reference the end or midpoint of linear drawing curves, and center marks. Providing two points will result in a linear centerline. Providing three points will result in a circular centerline. Providing more than three points will result in a linear or a circular centerline depending on whether all of the input points lie on a circle.
centermarkStyle (Optional)
Type: CentermarkStyle
Object that specifies the center mark style to use for the centerline. If not specified, the style defined by the active standard is used.
layer (Optional)
Type: Layer
Object that specifies the layer to use for the centerline. If not specified, the layer defined by the active standard is used.
closed (Optional)
Type: System.Boolean
Input Boolean that is only used in the case of a circular centerline. This indicates if it should be closed or not.

Return Value

Type: IManagedCenterline
The managed centerline.

See Also

Reference

Was this information helpful?