Quantcast
Channel: All Revit API Forum posts
Viewing all articles
Browse latest Browse all 66664

Getting reference to faces of exposed material layers for a given view

$
0
0

Dear everyone,

 

I have a problem i am stuck at. I want object reference to faces (or edge loops) for individual material layers of all cut elements (say a cut wall) for a given view. This is something that is conveniently available for interaction in Revit UI.

 

I don't think there is a direct support in API for the same. So following are various (unfulfilling) approaches i am toying with:

 

Thought trail 1: BoundingBoxIntersectsFilter > SolidSolidCutUtils > then what?

A weird idea of making a solid object aligned to (and over spaning) visible side of the view's CropBox. Then splitting faces of the intersecting elements (using SolidSolidCutUtils.SplitFacesOfCuttingSolid()). Collecting newly created split faces (it's loop coordinates). Then finally Rolling-back the transaction.

Weird approach in my view, also it has issues: How to get newly created split faces? How can split faces yield material-faces?

 

Thought trail 2: Plane vs Elements intersection

Basically what i want is coordinates of loops created by exposed material for a given view. 

I beleive Revit api must have a plane-element intersction utility somewhere. However i am unable to find one.

If there is one, i can create a plane aligned to visible side of the view's CropBox. Have it's intersection results for respective elements.

Please let me know if there are utils for doing this.

 

Throught trail 3: Probably i am over complicating it, and there is an easier and straight way to do it

I am not sure. What you suggest? After all it is so easily avilable in Revit UI.

 

Please let me know your view. Any help or hints will be helpful.

 

Best regards,

Kinjal.

 


Viewing all articles
Browse latest Browse all 66664

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>