Last active
May 18, 2021 17:56
-
-
Save chuongmep/a1293a57d4da0992d5f0f8ed4e422f6f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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