MoveTo
bool MoveTo(this Element element, XYZ target, View? view = null)Moves an element so its representative position (location point or bounding box centroid) coincides with the target point.
Parameters
- elementElement
The element to move.
- targetXYZ
Target position.
- viewView?
Optional view context for centroid fallback.
Returns: True if moved; otherwise false.
Example
element.MoveTo(new XYZ(0, 0, 0));