get_dimension_data

compas_cadwork.utilities.get_dimension_data(element)[source]

Get linear dimension by its element id or Element object.

TODO: Return a LinearDimension object instead of a tuple once it’s out of monosashi. TODO: Not doing it now to avoid circular dependency.

Parameters:
elementint or Element

The element id or Element object.

Returns:
tuple

A tuple of (points, xaxis, text_normal, distances).