Hi,
i am trying to create a dynamo script that should add a dot (circle) at the end of a polyline that meets the elevation compared with a surface. In our office we typically add a dot (tick) at the end of the contour line when it meeting existing grade and i want to auto this process. The script i started works with one polyline but doesn’t work for multiple lines. the Surface.ElevationByXY node only list 1 point even though there are more. I can figure out why.
Contour-tick.dyn (25.4 KB)
Hi @csanchez-jmc,
The Surfaces node returns a list of all surfaces in the document. In this case you only have one surface, but the output is still a list, just with a single item. So for the downstream operations, you either need to:
- Tell the nodes to work with each sub-item within the list (which would be accomplished by use the @L2 level for the input ports)
- Use a Selection.SurfaceByName node instead of the Surfaces node. In my opinion, this is the easiest option.
Thank you Zarin, i changed the node to Selection.SurfaceByName and i am getting better results. i also changed the List.Equals lacing to Shortnest because it was only giving a single output. to text the false value i have one contour line end at a different elevation from the surface and works as well.