Create.NewReferencePlane

Create.NewReferencePlane

Anonymous
Not applicable
1,046 Views
1 Reply
Message 1 of 2

Create.NewReferencePlane

Anonymous
Not applicable

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..

 

0 Likes
1,047 Views
1 Reply
Reply (1)
Message 2 of 2

saikat
Autodesk
Autodesk

Hi

 

This post might be of help in clarifying how to use the NewRefrencePlane():

http://adndevblog.typepad.com/aec/2013/01/bubble-end-and-free-end-in-newreferenceplane.html

 

cheers



Saikat Bhattacharya
Senior Manager - Technology Consulting
0 Likes