I’ve managed to put together a Dynamo script that creates surfaces from polylines located on different layers. The source polylines were assigned varying elevations, and with your previous help I was also able to compute cut and fill volumes successfully.
I have uploaded both the Dynamo script and the DWG file for reference.
I would like to ask whether it is possible to refine the script so that the generated surfaces do not extend beyond or overlap the boundaries of their respective polylines. My goal is for each surface to be strictly confined within the outline of the polyline used to create it.
In addition, I used Object.SetColor to assign different colors to each surface for presentation purposes. I have attached an image showing the desired appearance.
I would like to understand how best to achieve this visual effect:
-
Should I create separate surface styles with closely spaced contour intervals (e.g., dense major and minor contours) and assign those styles to the surfaces?
-
Or will
Object.SetColordirectly control the color of the contours and surface display without the need for custom surface styles?
Any guidance on how to improve the script and achieve a clean, presentation-quality output would be greatly appreciated.
Thanks in advance for your help. files attached are as follows. dwg file,surface colors to show this way, dynamo script,
