Not applicable
04-03-2018
11:57 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello All,
I'm creating an addin, that will ask the user to enter XYZ z coordinate points values. Based on those values property line will be created. So far, I'm able to draw the line by using the following code.
private static void CreateLine(Document doc, XYZ startingPoint, XYZ endingPoint) { Line line = Line.CreateBound(startingPoint, endingPoint); using (Transaction lineTransaction = new Transaction(doc, "Creating the line")) { lineTransaction.Start(); doc.Create.NewDetailCurve(doc.ActiveView, line); lineTransaction.Commit(); } }
But the add-in requirement is to create property-lines, which I'm not able to find the proper method in the API that will help me to create property-line. I've come across this thread too [Create Property Line Programatically] but it didn't share the exact solution that I'm looking for. Can anyone share how one can create property lines using API?
Solved! Go to Solution.