Hi all!
I am trying to convert dynamo curves to revit modelcurves. I thought converting them using ToRevitType() would do the job but it only creates a Revit.DB.Line and doesn’t create the modelcurves as desired.
Do I need to create the ModelCurves using the Document.Create.ModelCurve or is there another quick conversion method?
Yes - you need to convert the curve to a model curve using the method you referenced.
1 Like
ToRevitType()
is just a geometry conversion. In order to create an actual element you would need to use Document.Create.ModelCurve
if using the API and Revit geometry or ModelCurve.ByCurve
if using Dynamo geometry and nodes.
2 Likes
Thanks for the response Nick!
For some reason, originally, when I used the node ModelCurve.ByCurve it didn’t work noting that it works only in family document (or something of the sort) but now that I have closed the dynamo and reopened it it works…
1 Like
Sounds like you grabbed a similar (maybe custom) node meant for family editing and not the standard one.