Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
DetailCurve CreateModelCurve(Document doc, Autodesk.Revit.DB.View view, Autodesk.Revit.DB.XYZ point1, Autodesk.Revit.DB.XYZ point2)
{
using (Transaction tran = new Transaction(doc))
{
tran.Start("change");
Line line = Line.CreateBound(point1, point2);
DetailCurve detailCurve1 = doc.Create.NewDetailCurve(view, line);
tran.Commit();
return detailCurve1;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.