TryGetLocationPoint

bool TryGetLocationPoint(this Element element, out XYZ? point)

Tries to get the location point of an element.

Parameters

  • elementElement

    The element to inspect.

  • pointout XYZ?

    Outputs the location point if available.

Returns: True if a point location exists; otherwise false.

Example

if (element.TryGetLocationPoint(out XYZ? p))
{
TaskDialog.Show("Point", p.ToString());
}