Message 1 of 2
Create.NewReferencePlane

Not applicable
02-04-2013
12:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I have a dxf file with some lines in it. I would like to import these lines in to Revit as reference line. How can I do this with Revit API ?
In dxf , there is X,Y,Z coordinates of start point of a line and end points of a line. Like : StartPoint X:20 ,Y:30, Z:11,
End Point : X:21, Y:31, Z:0 . Can I draw this line as a reference line? If I can try to draw this as ReferencePlane, this time I couldn't understand the cutVec of this function.
If I use it like this :
// Create Plane 2 XYZ freeEnd2 = new XYZ(20, 30, 11); XYZ bubbleEnd2 = new XYZ(21, 31, 0); ReferencePlane refPlane2 = doc.Create.NewReferencePlane( bubbleEnd2, freeEnd2, XYZ.BasisZ, doc.ActiveView);
this time there is an error like "Input geometry is not correct to lay out the reference plane"..
Please help me.. Thanks..