Linked Model - Custom View Range/Custom Cut Plane

Linked Model - Custom View Range/Custom Cut Plane

ianpM59BG
Contributor Contributor
132 Views
2 Replies
Message 1 of 3

Linked Model - Custom View Range/Custom Cut Plane

ianpM59BG
Contributor
Contributor

Hi All,

I'm still pretty new to C# and the working inside the API, but I've got a good start on a project that I'm hoping I can get some help on.

 

I work at a structural engineering firm. When we get models from the architect, the best workflow we have is to assign each framing plan manually to a Linked View in the arch model, where we show the Arch Floor plan of the floor below. For example, the Second Floor Framing Plan uses the First Floor Arch Plan as a background. 

 

If we try to show the linked model with the Host View Range, it will show doors, walls, floors, etc. on the floor above, which we don't want (see view range below)

ianpM59BG_0-1756475365815.png

 

I've asked about better workflows in the Structure Forum with little success, so I'm turning to the API.

 

Through the API I'm using a FEC that passes an ElementMultiCategoryFilter to get all categories I can hide in the active view, and an ElementIntersectsSolidFilter to make a Bounding Box that is offset below Associated Level, then make a list of all the linked model elements that are outside the bounding box, so that I can Hide them with HideElements. This actually all works!

 

BUT.

 

The Linked Model View Range is still set to By Host View, which means that elements don't show as cut, when they'd show up much better if they did.

 

Is there any way to use the API to visually assign the cut parameter/cut plane/view range to these elements?

 

ianpM59BG_1-1756477321575.png

ianpM59BG_2-1756477338331.png

 

0 Likes
133 Views
2 Replies
Replies (2)
Message 2 of 3

Charles.Piro
Advisor
Advisor

Hi,

 

Unfortunately, I don't think it's possible with the Revit APIs to  assign the cut parameter/cut plane/view range to a specific object.
I think, you can create the specific cut planes in the view but for an area not per objects.

 

😉



PIRO Charles
Developer

PIRO CIE
Linkedin


0 Likes
Message 3 of 3

ianpM59BG
Contributor
Contributor

@Charles.Piro , You're saying there's a way to feed a specific cut plane for the area though? Any way to do that through the API and have it only cut the linked model? That would do exactly what I'm looking for.

0 Likes