Message 1 of 4
Runtime Error using Line.CreateBound

Not applicable
09-18-2013
09:42 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello
I am trying to create a Line in my Addin. When I run my code in that creates a line using the static function 'Line.CreateBound()' I get a runtime error. The error is:
Method not found 'Autodesk.Revit.DB.Line Autodesk.Revit.DB.Line.CreateBound(Autodesk.Revit.DB.XYZ, Autodesk.Revit.DB.XYZ)'.
Note the error occurs at runtime and not compile time. What is going wrong and how can I fix this?
Line pipeGeom = Line.CreateBound(strt, end); // error occurs here. Note strt and end are not null and are valid points FamilyInstance pipe = doc.Create.NewFamilyInstance(pipeGeom, pipeSymbol, uiDoc.ActiveView);