Ok, sorry, I'm really struggling with this. I looked at it and you're right, they seem to be ceiling plans. However, I can't seem to see how to change the z direction. I looked at the CreateViewSection example in the SDK and looked at how they applied a transform. I tried something similar, but I can't see how to apply the transform to the view. From what I can tell, plans do not take a transform the way sections do.
I also found the UpDirection, RightDirection, and ViewDirection properties of the plan, which I thought would modify the transform, but they are all readonly properties, so I can't change them.
the best success I've had is with the code below. This code will create plan views that are right side up, but it doesn't set the cropbox where it should. I even put in the message boxes in there to give the plan cropbox location and minpoint location directly after I set them equal, and they are not equal... I don't understand why it's not setting it.
I also tried swapping the Z coordinates for the maxpoint and minpoint from the original code I posted, but that gave me an error that the values were "outside the expected range".
Here's the code mentioned above:
PHP Code:
Try
'enlarge the bounding box
plan.CropBoxActive = True
plan.CropBoxVisible = True
Dim MaxPoint As New Autodesk.Revit.Geometry.XYZ(RmBB.Max.X + 5, RmBB.Max.Y + 5, 4)
Dim MinPoint As New Autodesk.Revit.Geometry.XYZ(RmBB.Min.X - 5, RmBB.Min.Y - 5, 0)
plan.CropBox.Min.X = MinPoint.X
plan.CropBox.Min.Y = MinPoint.Y
plan.CropBox.Max.X = MaxPoint.X
plan.CropBox.Max.Y = MaxPoint.Y
MsgBox(plan.CropBox.Min.X.ToString)
MsgBox(MinPoint.X.ToString)
PlanViews.Add(plan)
Catch ex As Exception
MsgBox(ex.ToString)
End Try