NewPointOnEdge Method


Create a PointOnEdge object which is used to define the placement of a ReferencePoint.

Namespace: Autodesk.Revit.Creation
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)

Syntax

C#
public PointOnEdge NewPointOnEdge(
	Reference edgeReference,
	PointLocationOnCurve locationOnCurve
)
Visual Basic
Public Function NewPointOnEdge ( _
	edgeReference As Reference, _
	locationOnCurve As PointLocationOnCurve _
) As PointOnEdge
Visual C++
public:
PointOnEdge^ NewPointOnEdge(
	Reference^ edgeReference, 
	PointLocationOnCurve^ locationOnCurve
)

Parameters

edgeReference
Type: Autodesk.Revit.DBReference
The reference whose edge the object will be created on.
locationOnCurve
Type: Autodesk.Revit.DBPointLocationOnCurve
The location on the edge.

Return Value

If creation was successful then a new object is returned, otherwise an exception with failure information will be thrown.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentNullException Thrown when the input argument edgeReference or locationOnCurve is a null reference (Nothing in Visual Basic).

See Also

ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →