Distance point in vector

Distance point in vector

sonicer
Collaborator Collaborator
1,223 Views
1 Reply
Message 1 of 2

Distance point in vector

sonicer
Collaborator
Collaborator

I have point A[x,y,z ] and vector u=x,y,z and distance l=400...how can I get new point B[x, y, z] ??

The point B is in direction u and distance from A l=400..

 

 

Is there is revit api some function ..?

thx..

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

jeremytammik
Autodesk
Autodesk

Dear Sonicer,

 

I would suggest you work trough some of the Revit API getting started material before posting many questions that are explained there:

 

http://thebuildingcoder.typepad.com/blog/about-the-author.html#2

 

To answer this specific one:

 

Yes, the Revit API does provide basic point and vector operations such as addition, subtraction, multiplication, etc.

 

  B = A + L * U

 

By the way, here is a recent answer to a similar basic geometric query on Revit XYZ operations:

 

http://thebuildingcoder.typepad.com/blog/2017/01/distances-switches-kiss-ing-and-a-dino.html#2

 

Best regards,

 

Jeremy

 

 



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

0 Likes