MoveElement silently projects translation vector onto sketch plane

I was trying to use  ElementTransformUtils.MoveElement to move a model line. The line would move, but not in the direction specified by the vector I was using for MoveElement. WHY?!

It happens because the line can only move in its sketch plane. This makes perfect sense now, but it can be strange when you tell the API to move the line by (10, 10, 0) and it moves somewhere else without any error.

Advertisements

Ready for Revit 2016? New bulk upgrader tool now available

Save a ton of time getting your Revit files re-saved in 2016 with the Bulk File Upgrader tool, now available for Revit 2016 at the Autodesk Exchange

https://apps.exchange.autodesk.com/RVT/en/Detail/Index?id=appstore.exchange.autodesk.com%3abulkfileupgrader_windows32and64%3aen