Revit Architecture Forum
Welcome to Autodesk’s Revit Architecture Forums. Share your knowledge, ask questions, and explore popular Revit Architecture topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Create Curve

0 REPLIES 0
Reply
Message 1 of 1
jeffreybo.liu
179 Views, 0 Replies

Create Curve

Hi Gents,

 

I am new to Revit programming as well as C#. My question might be very stupid. I am trying to create walls, and I will need to define the curve first.

 

I have tried the following code:

 

Curve panelCurve = new Curve();

 

However, I received error message when I built the project: "The type 'Autodesk.revit.DB.Curve' has no constructors defined"

 

And... Curve panelCurve = Curve.create() seems not available. There are only Curve.Equals() and Curve.ReferenceEquals() available.

 

Wall class does not have constructors defined as well, but it has Wall.Create() available.

 

Thanks very much!

 

 

0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report


Autodesk Design & Make Report