Skip to content

Instantly share code, notes, and snippets.

@chuongmep
Last active May 18, 2021 17:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chuongmep/a1293a57d4da0992d5f0f8ed4e422f6f to your computer and use it in GitHub Desktop.
Save chuongmep/a1293a57d4da0992d5f0f8ed4e422f6f to your computer and use it in GitHub Desktop.
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