Create Reference Plane at an angle

strsuraj
Enthusiast
Enthusiast

Create Reference Plane at an angle

strsuraj
Enthusiast
Enthusiast

Hi, I am trying to create a Reference Plane at an angle say 33 degree. Do we have an API where we can give free end, bubble end, angle and View to create a Reference Plane.

 

 

RP at an angle.png

 

Thankyou

 

0 Likes
Reply
567 Views
3 Replies
Replies (3)

jeremytammik
Autodesk
Autodesk

RTFM, my friend.

 

The API provides the NewReferencePlane and NewReferencePlane2 methods:

 

 

You can search the Revit SDK samples for demonstrations showing how to use them.

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes

strsuraj
Enthusiast
Enthusiast

Hi @jeremytammik ,

 

Thanks for pointing out to these link. But I am still unable to figure out, how to achieve this. Can you provide more help here.

 

Thanks

0 Likes

recepagah12
Advocate
Advocate
 

As @jeremytammik  said, you should use "NewReferencePlane" method.

 

var p1 = new XYZ(0,0,0);
var p2 = new XYZ(0,10,0);
var p3 = new XYZ(0,0,6.494075932);

doc.Create.NewReferencePlane2(p1,p2,p3,doc.ActiveView);