How to create a curve

How to create a curve

ssw9UZNL
Advocate Advocate
338 Views
1 Reply
Message 1 of 2

How to create a curve

ssw9UZNL
Advocate
Advocate

Hi All,

 

I know this is very simple, but I can not work it out.

 

If I want to create a curve using the Revit API- how do I do this.

 

I have made two points, and I simply want to use these to make a curve that I can then use to make a model line.

 

Point_A = DB.XYZ(0,0,0)
Point_B = DB.XYZ(100,100,0)

 

Thankyou

 

 

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

ricaun
Advisor
Advisor
Accepted solution

If your curve is a Line.

 

var line = Line.CreateBound(Point_A, Point_B);

 

Here the reference: https://www.revitapidocs.com/2015/7885bdf9-3007-ea60-af6b-a96ac7672c18.htm

Luiz Henrique Cassettari

ricaun.com - Revit API Developer

AppLoader EasyConduit WireInConduit ConduitMaterial CircuitName ElectricalUtils

0 Likes