Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi I wanted to create an aligned dimension. I followed exactly as Revit API docs:
Autodesk.Revit.DB.Line line = Autodesk.Revit.DB.Line.CreateBound(location1, location2);
ReferenceArray refArray = new ReferenceArray();
refArray.Append(line.GetEndPointReference(0));
refArray.Append(line.GetEndPointReference(1));
doc.Create.NewDimension(
doc.ActiveView, line, refArray);
However, I received error Invalid Number of references. I used revit 2018.2
I have searched for this problems and see solutions on other forums. I tried to cast the start point and end point to reference but still receive the same error. Thanks in advance!
Solved! Go to Solution.