Retrieve Linked model Cut Geometry

vengateshhp2001
Participant
Participant

Retrieve Linked model Cut Geometry

vengateshhp2001
Participant
Participant

Hi,

I'm trying to retrieve cut geometry for a link file that was sectioned by scope box.

Please suggest some RevitAPI method to rectify this issue.

Thank you in Advance.

 

0 Likes
Reply
648 Views
10 Replies
Replies (10)

jeremy_tammik
Autodesk
Autodesk

Maybe this article by The Building Coder on Retrieving Section View Intersection Cut Geometry will provide some hints for you?

 

    

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes

vengateshhp2001
Participant
Participant

Hi Jeremy_tammik
Thanks for your response. I tried using it but I couldn't get the cut geometry.
Actual scenario is this.
My host RVT document contains a link doc with mesh geometry in it. With help of section box I cut the mesh geometry and now I need to retrieve the cut geometry of the mesh. Can you pls help me with this for past one month I am trying to solve this.
Thanks in advance.

0 Likes

jeremy_tammik
Autodesk
Autodesk

Here is one possible approach:

  

   

Quote: Answer: You can easily extract the cross section shapes from the element geometry by defining appropriate section views in Revit and asking the floor for its geometry in that specific view, as described in the note above on section view geometry.

   

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes

vengateshhp2001
Participant
Participant
Hi Jeremy_tammik,
I tried this also. it doesn't retrieve the cut geometry for the host document containing linked models, I get the whole geometry.
0 Likes

jeremy_tammik
Autodesk
Autodesk

Do you see the desired cut geometry in the section view?

   

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes

vengateshhp2001
Participant
Participant

Hi Jeremy_tammik

Actually I got full geometry only when passing view section to options 

If it is non linked file then I get cropped geometry but for linked file it was not working 

0 Likes

vengateshhp2001
Participant
Participant

Hi Jeremy_tammik

Actually I got full geometry only when passing view section to options 

0 Likes

vengateshhp2001
Participant
Participant

Hi Jeremy _tammik, Actually I'm trying to retrieve the visible geometry which resides inside the scope box  especially for linked file(mesh geometry) and is there any other possible way to get that clipped geometry using Directcontext3D namespace or suggest any other methods also ?

Thank you 

0 Likes

jeremy_tammik
Autodesk
Autodesk

Here is information on DirectContext3D:

   

  

It enables you to add non-database-resident geometry to the Revit UI for visualisation purposes.

  

Afaik, the method of choice to obtain cut geometry is to set up an appropriate section view and retrieve what you need from that.

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes

vengateshhp2001
Participant
Participant
Hi Jeremy _tammik, I tried by setting up proper view but got full Geometry only If I do the same for Nonlinked file then I got the cropped Geometry.
Please suggest some other way to get the Linked model cropped Geometry using RevitAPI.
Thank You
0 Likes