[Question] Visual Scripting: Get length of a 3D line


Hello everyone,

I developed a VS that needs a 3Dline as input (Node: <Line3DInput>). In order to change the inclination of the 3Dline (e.g. with a double input of the inclination), I want to get the horizontal, vertical, and diagonal length (like the three sides of a triangle). Is there a node that gives me these length values back or do I have to calculate them manually (coordinate differences)?

Regards,

Marco

Attachments (1)

img
2020-11-17_Line Length.JPG
Type: image/jpeg
Downloaded 5 times
Size: 24,40 KiB
1 - 2 (2)
  • 1

Hello Marco,

you can create a Vector3D, from which you get the needed length.

Best regards
Horst

Attachments (1)

img
LineLength.png
Type: image/png
Downloaded 12 times
Size: 18,05 KiB
1 - 2 (2)
  • 1

https://campus.allplan.com/ uses cookies  -  More information

Accept