Extract tesselated geometry from 2D component

Extract tesselated geometry from 2D component

pmeigneux
Advocate Advocate
648 Views
5 Replies
Message 1 of 6

Extract tesselated geometry from 2D component

pmeigneux
Advocate
Advocate

Hello,

 

I currently use the CustomExporter() function to extract tesselated geometry from the Revit Model.

I arrive to extract to obtain all 3D geometry from the 3D Revit component. 

But I didn't find a way to extract 2D geometry with this approach.

 

For example, I put a RVT file in attachment with some pipes components which are not extracted.

 

Thanks for your support,

 

Philippe

0 Likes
649 Views
5 Replies
Replies (5)
Message 2 of 6

jeremytammik
Autodesk
Autodesk

Dear Philippe,

 

Thank you for your query.

 

Yes, indeed, I am sorry to say that 2D geometry is not supported by the custom exporter.

 

I wish it were.

 

Best regards,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 3 of 6

pmeigneux
Advocate
Advocate

Hello Jeremy,

 

Thanks for your response.

 

Do you know if there is any workaround to obtain a tesselated component from 2D Geometry?

 

Philippe

0 Likes
Message 4 of 6

jeremytammik
Autodesk
Autodesk

Dear Philippe,

 

Yes, sure.

 

Query the 2D element for its geometry in a view that provides what you need.

 

It will consist of curves, I presume.

 

Use Curve.Tessellate on them:

 

http://www.revitapidocs.com/2017/f95f3199-3251-c708-c5a3-a0e9ef95ecfa.htm

 

Cheers,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 5 of 6

pmeigneux
Advocate
Advocate

Hello @jeremytammik,

 

I take a look to your previous answer and I need to precise our question.

 

Indeed, it seems Structural and MEP components have a different behaviour from the architectural component. So we didn't find a way to use Curve.Tesselate on MEP elements.

 

Do you know a way to extract these following informations from Structural or MEP components with CustomExporter():

 

  • extract tesselate geometry from Structural or MEP components, for example with (structural rebar or pipe see .rvt file in attachments)
  • color of 2D components;
  • transparency data on 2D component.

Thanks for your help,

 

Philippe

0 Likes
Message 6 of 6

pmeigneux
Advocate
Advocate

Hello @jeremytammik

 

I finally succeed to extract a tesselated geometry from 2D MEP component with CustomExporter().

 

However, I didn't find a way to extract the color and transparency associated on the Materials.

 

Do you know a way to obtain the Materials.node on the MEP.Curve function?

 

Regards,

 

Philippe

0 Likes