Find projected 3D lines intersect like Trim/Extend command

Find projected 3D lines intersect like Trim/Extend command

andre_adc-dao
Advocate Advocate
986 Views
1 Reply
Message 1 of 2

Find projected 3D lines intersect like Trim/Extend command

andre_adc-dao
Advocate
Advocate

Hi,

 

I'm trying to create Trim/Extend command using Revit API to connect pipes or ducts. I didn't find any method to do that. I think I have to find myself the projected intersection point but I don't know how to do that. The Intersect method seems to return only real intersection (not projected).

 

Is anybody have an idea how to do that?

 

Regards,

 

André

0 Likes
Accepted solutions (1)
987 Views
1 Reply
Reply (1)
Message 2 of 2

jeremytammik
Autodesk
Autodesk
Accepted solution

Dear André,

 

Thank you for your query.

 

Under optimal conditions, there is no need for you to create any such command, because the pipes and ducts will calculate their intersection point on their own when you ask Revit to connect them.

 

Please read the series of posts on The Building Coder on implementing the rolling offset to see various way of making use iof this functiontionality:

 

http://thebuildingcoder.typepad.com/blog/2014/01/final-rolling-offset-using-pipecreate.html

 

I hope this helps.

 

Best regards,

 

Jeremy



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