GetLocalCoordinateSystem Method (XYZ)


Gets the local coordinate system (LCS) reflects analytical model orientation at the specified point.

Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 17.0.0.0 (17.0.1090.0)
Since: 2015

Syntax

C#
public Transform GetLocalCoordinateSystem(
	XYZ point
)
Visual Basic
Public Function GetLocalCoordinateSystem ( _
	point As XYZ _
) As Transform
Visual C++
public:
Transform^ GetLocalCoordinateSystem(
	XYZ^ point
)

Parameters

point
Type: Autodesk.Revit.DB XYZ
The point on the analytical model stick element.

Return Value

Transformation matrix.
  • x - longitudinal axis,
  • y - transversal, section - horizontal, strong axis,
  • z - transversal, section - vertical, weak axis,
  • origin - base point of LCS.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentException The point does not lie on the element.
Autodesk.Revit.Exceptions ArgumentNullException 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 →