CreateFromCenterline Method


Create fabrication routing end from centerline point on straight element.

Namespace: Autodesk.Revit.DB.Fabrication
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since:  2017

Syntax

C#
public static FabricationPartRouteEnd CreateFromCenterline(
	Element element,
	XYZ ptAt
)
Visual Basic
Public Shared Function CreateFromCenterline ( _
	element As Element, _
	ptAt As XYZ _
) As FabricationPartRouteEnd
Visual C++
public:
static FabricationPartRouteEnd^ CreateFromCenterline(
	Element^ element, 
	XYZ^ ptAt
)

Parameters

element
Type: Autodesk.Revit.DBElement
The straight element that the centerline is on.
ptAt
Type: Autodesk.Revit.DBXYZ
A point along the straight element where the fitting to be cut in should be positioned.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentNullException A non-optional argument was null

See Also

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →