Understanding View Creation in Rhino.Inside.Revit

Create Views with a Plane, Line, Rectangle or Box (but not just any Box, Rectangle, Line)

2 Likes

Hi Japhy,

I´d like to ask a question / favor. I´ve run into issues when creating section views (50+) in existing document. The error comes up as shown below.

If I use the same script in blank document, there are no issues and sections are created.

RiR

Could you please hint parameters used in the node, which could be set as read-only in the RVT document?

If you need the RVT file and the script, I´ll try to share through OneDrive link.

Thank you very much.

Regards,

Pavel

OK, I figured out the reason.

Sections are not created if Section View Type used for creating sections has built-in parameter “New views are dependent on view templates” set to True.

The solution is to set this value to False when creating / duplicating ViewType.

Regards,

Pavel

1 Like

Thanks for reporting and following up. I’ll get a bug report going to see if we can handle that better.

Hi @Pavel2,

This is fixed on the todays build of v1.18.

2 Likes

Hi Japhy,

Is there a reason why when creating the section through the wall, it’s sort of flipping the orientation of the section.

For instance if I draw this line to create the section

This is what I’m getting in Revit

It seems to also have the same behaviour in the video you shared.

I would also like to ask if you have a way to control the view crop boundary, ideally I would like it to cover the bounding geometry in question. Because of the behaviour highlighted above it seems the crop boundary is driven by the length of the line that is used to create the section, but because this is flipped, that relationship is a little confusing.

Section test.gh (7.8 KB)

Actually I think I found a way around, I didn’t need to centralise the line + I added a 90 degree rotation to the line as you can see from the script

The question that I still have is if there’s a possibility to adjust the cropped view although it’s not super essental, would be nice to have.

yes you can adjust the crop view using View Extents component

Hi Muhammad,

Your method will still require the user to manually use the slide to crop the view, I was hoping that the crop boundary would automatically contain the object in question, somehow using bounding box or another possible method.

Thanks for your fast replies!

I hope this is what you are looking for:)

That didn’t quite work sadly.

This seems to get a little closer but not perfect

Use View Crop Region Component