BoundingBoxXYZTransform Property |
The transform from the coordinate space of the box to the model coordinate space.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 27.0.4.0 (27.0.4.0)
Syntaxpublic Transform Transform { get; set; }Public Property Transform As Transform
Get
Set
public:
property Transform^ Transform {
Transform^ get ();
void set (Transform^ value);
}member Transform : Transform with get, set
Property Value
Transform
RemarksThe transform must always be right-handed and orthonormal.
Exampleprivate void RotateBoundingBox(View3D view3d)
{
if (!view3d.IsSectionBoxActive)
{
TaskDialog.Show("Revit","The section box for View3D isn't active.");
return;
}
BoundingBoxXYZ box = view3d.GetSectionBox();
XYZ origin = new XYZ(0, 0, 0);
XYZ axis = new XYZ(0, 0, 1);
Transform rotate = Transform.CreateRotationAtPoint(axis, Math.PI/6.0, origin);
box.Transform = box.Transform.Multiply(rotate);
view3d.SetSectionBox(box);
}
See Also