How create perpendicular with revit api

How create perpendicular with revit api

AndrewButenko
Advocate Advocate
3,527 Views
1 Reply
Message 1 of 2

How create perpendicular with revit api

AndrewButenko
Advocate
Advocate

I have p0 as XYZ and p1 as XYZ .

 

 

I need to get a line that is perpendicular to the line p0-p1 and ends at point p0 and has a length = d

 

0 Likes
3,528 Views
1 Reply
Reply (1)
Message 2 of 2

aignatovich
Advisor
Advisor

Hi!

 

This is basic geometry task

Look at https://forums.autodesk.com/t5/revit-api-forum/how-to-create-line-based-on-angle/td-p/7372827

in few words you need to calculate cross product between your line direction and the plane, where your line situated normal. This will be your perpendicular direction

0 Likes