DynamoDS / Dynamo

Open Source Graphical Programming for Design
https://dynamobim.org
Other
1.71k stars 631 forks source link

Wall By Curve: what is a curve in project? #637

Closed jbenoit44 closed 10 years ago

jbenoit44 commented 10 years ago

I can't make it work, as Revit.DB.ModelArc and Revit.DB.ModelNurbSpline are not curves. I tried with edges but not curves either. I must be missing something here.

LevL commented 10 years ago

Model Curve (Revit.DB.ModelArc included) is Revit element. It seems that Wall node needs geometrical Line or Arc: Revit.DB.Arc or Revit.DB.Line. Walls could not be put on spline, so the node will not work for spline. If you have Vasari you could approximate Spline (Revit.DB.Curve subclass) by sequence of tangent arcs (there is node for that when Dynamo is connected to Vasari) and put walls on those Arcs. To get Curve from ModelCurve please use NodeName("Geometry Curve From Model Curve"). Vasari node for approximation: NodeName("Approximate By Tangent Arcs").

jbenoit44 commented 10 years ago

thanks for the answer Lev. I get it. wall node needs a base and a top level input IMHO.

LevL commented 10 years ago

Node "Wall By Curve" takes level and height, not top level. I did not find in RevitAPI wall creation method with top level id as input. It might be set as parameter after wall is made, so it could be possible to have such node.