Project Curve to Surface API?

Project Curve to Surface API?

JohnesHou
Explorer Explorer
658 Views
1 Reply
Message 1 of 2

Project Curve to Surface API?

JohnesHou
Explorer
Explorer

Hello,

How to using Revit API to project a Curve Line to a geometry surface just like this on dynamo?

Thanks

JohnesHou_0-1701663054695.png

 

0 Likes
Accepted solutions (1)
659 Views
1 Reply
Reply (1)
Message 2 of 2

jeremy_tammik
Alumni
Alumni
Accepted solution

Afaik, the Revit API provides functionality to project a point onto a curve or surface, but not to project a curve onto a surface. That Dynamo node is probably using an additional non-Revit geometry library. Since Dynamo is open source, you can take a look at the node yourself and see how it achieves what it does. You can also integrate other geometry libraries with enhanced capabilities into your Revit add-in. If your surface is planar, you might be able to implement this functionality in pure Revit by setting up an appropriate section view and capturing the geometrical result of projecting your 3D curve onto that 2D view plane.

  

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