Warning: No property called Direction on Autodesk.DesignScript.Geometry.Point could be found

hi all
I use the sample nodes, but when I run it, it errors. You only
Can I fix this?
thanks you

This is likely due to the element you are feeding into the Elemwnt.Location node has a point based location not a line based location. I reccomend you look into using an if statement to return the point if it’s a point or the startpoint if it’s a line.

hi JacobSmall
thanks you for your answer. This is the link that I read and used but when I did it, I seen fail as the follow. Can you give me some advise? Thank you in advance.
https://forum.dynamobim.com/t/copy-rebar-from-one-element-to-another/7431
Rebar.Copy.dyn (17.4 KB)

Cant really say I’m at all familiar with the rebar tools, or that script, and I’m out of the office until Monday so I can’t try it out.

I can reccomend you try removing the curve.endpoints nodes and passing just the points along instead. If that doesn’t work you may have to wait.

Hi @vuloantm

Since your already getting Point from “Element.GetLocation” node you can directly feed the points to vectors and other nodes.