Sorry but you are very vague in what you want to achieve with your script.
Could you maybe explain in depth what you are trying to do and what your preferred input and output is?
Thanks for the reply. I am looking to create a section for a curved ramp.
I was hoping to do this by using Dynamo to create sections along a curve model line.
In my google searching I found the post I referenced in my previous post however, I can’t seem to get that to work.
I am quite new at Dynamo, but i am trying to do tool which could generate a similar unrolled section, using “fake” way.
I know how to generate “n” section in a good way, but have no idea how to snap them nearby (into a sheet) to create complex unrolled section. The section views generates in the random way and it is useless at this moment.
Okay, problem solved without using Py.
I just used a node “Viewport.BySheetViewLocation” and made a loop to properly arange the cross sections next to each other.
All viewports have a bounding boxes with individual centre point - solution is to give it the appropiate coordinates.