Filled region on Sheet instead of View based on Element

Would it be possible to put a Filled Region over an Element on a Sheet based on the Elements Bounding Box for Example?

So let’s say for this example i don’t want the Filled Region on the View but on the Sheet?

Yes, it is possible. Something like these steps:

  1. Get the curves defining the filled region in the view (looks almost like the outline of the room but not sure, so you might be able to intersect the view’s plane with the room’s boundary, or project the boundary curves onto the view’s plane).
  2. Get the viewport for the view.
  3. Get the transform from the viewport using the Viewport.GetProjectionToSheetTransform method.
  4. Transform the geometry (from 1) by the viewport’s transform (from 3).
    • You might have to scale the transform by the view’s scale here; I don’t recall.
  5. Generate the filled region on the sheet using the transformed geometry.
2 Likes

Thanks for this. Never there was such a thing. Hence my question. Will look into it later.

Yeah - I don’t know if there is a node for it, but there is a method in the Revit API so it is doable. :smiley:

Hate to be the one to tell you, but Revit does not allow filled regions on sheets.

1 Like

OMG I can’t believe I forgot this!!

@bvs1982 while you can calculate the geometry, you can’t get filled regions. :frowning:

What was the reason for wanting to do it this way?

Always a work around >>>Think @john_pierson had a demo but can located it atm but was similar to this .

2 Likes

wow, i wish i had have known this about 30 times in the past :smiley:

cheers!

1 Like