Question: How do I call flow along surface passing in the surfaces and point arrays programmatically?
Problem: During the layout of objects on a surface, I use FlowAlongSrf. I am constantly adding new objects to the base surface, and re-calling FlowAlongSrf to get them on the target surface. History is enabled so I am able to move the objects and get them oriented correctly.
Calling flow along surface 10 times in a row, remembering to pick the right corners on each surface is painstaking.
Solution: Create a script to capture the initial flow along surface. Use Rhino.GetSurfaceObject to capture the point on the base and target surface, convert the point array to text objects and store them on base surface with Rhino.SetUserText.
Create a second script called reflow. Pick the new object(s) to flow and select the base surface. Use Rhino.GetUserText to get the target surface and the point arrays to correctly orient the FlowAlongSrf command.