In Revit API, how can I get Autodesk.Revit.DB.Transform by knowing the final Plane of where the instance should be inserted?
There is a solution which calculates Transform from normal vector of the final plane. But I would need to consider all three axes of the final plane, not only its normal.
Basically I created a DirectShapeType at 0,0,0 lying in the XY plane. And now I would like to instantiate it to some plane in 3D. I know this plane in 3D, but I do not know how to create Autodesk.Revit.DB.Transform for it:
Maybe obtaining the yaw, pitch, roll angles somehow, but sadly even with this information, Autodesk.Revit.DB.Transform does not allow to manually set the transformation matrix parameters.
Any help would be appreciated, as I don’t know how to solve this problem.