How to convert 3D Curve to 2D Curve

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Dear Revit API experts,
I am trying to convert ramp to floor.
I have found how to do it using dynamo, now i want to do it using API.
The ramp face consists of HermiteSpline curve. (which i consider as 3D curve, am I right?)
I want to convert this curve to 2D. (XY surface)
Attached is the dynamo graph.
I want to find similar API method equivalent to Curve.Project in the dynamo.
Before Curve.Project
[0] Curve(StartPoint = Point(X = 1037.124, Y = 1761.638, Z = 0.000), EndPoint = Point(X = 1256.636, Y = 2737.248, Z = 0.000))
[1] Curve(StartPoint = Point(X = 1256.636, Y = 2737.248, Z = 0.000), EndPoint = Point(X = 2463.127, Y = -3567.063, Z = 990.600))
[2] Curve(StartPoint = Point(X = 2463.127, Y = -3567.063, Z = 990.600), EndPoint = Point(X = 1898.903, Y = -2741.441, Z = 990.600))
[3] Curve(StartPoint = Point(X = 1898.903, Y = -2741.441, Z = 990.600), EndPoint = Point(X = 1037.124, Y = 1761.638, Z = 0.000))
After:
[0] Line(StartPoint = Point(X = 1037.124, Y = 1761.638, Z = 0.000), EndPoint = Point(X = 1256.636, Y = 2737.248, Z = 0.000), Direction = Vector(X = 219.512, Y = 975.610, Z = 0.000, Length = 1000.000))
[1] NurbsCurve(Degree = 3)
[2] Line(StartPoint = Point(X = 2463.127, Y = -3567.063, Z = 0.000), EndPoint = Point(X = 1898.903, Y = -2741.441, Z = 0.000), Direction = Vector(X = -564.224, Y = 825.622, Z = 0.000, Length = 1000.000))
[3] NurbsCurve(Degree = 3)
Thanks.