GetDefaultPositiveDirectionForMorphedTargetEdgesHandle Method


Rebar Free Form Accessor Get Default Positive Direction For Morphed Target Edges Handle Method

Gets the default positive direction of the specified target rebar edge in terms of how Morphed Free Form Rebar is defining the default positive direction.

Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 27.0.4.0 (27.0.4.0)
Syntax
public static XYZ GetDefaultPositiveDirectionForMorphedTargetEdgesHandle(
	Document document,
	TargetRebarEdge targetRebarEdge,
	int barIndex
)

Parameters

document Document
The document that contains the target rebar.
targetRebarEdge TargetRebarEdge
The target rebar edge for which it will get the default positive direction.
barIndex Int32
The index of the bar in the target set. Should be between 0 and NumberOfBars() - 1.

Return Value

XYZ
Returns the default positive direction of the specified target rebar edge.
Exceptions
Exception Condition
ArgumentException The target rebar should be a valid Rebar Target and bar index should be between 0 and NumberOfBars() - 1.
ArgumentNullException A non-optional argument was null
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 →