Surface.ByPatch fails

Surface.ByPatch fails

When I run the script “Scope-Boxes-for-Masterplan” I have a warning by “Surface.ByPatch”, the result is an Null value (see also fig. 1 and fig. 2).
@Paolo_Emilio_Serra1 and @RaquelBascones


Fig. 1

Fig. 2

Does anyone have a solution for this?

Thanks in advance.

Source data:
202101_D4R_0027_C0_LI_N_2D_GD_Scope-Boxes-for-Masterplan → Dynamo file

Try closing your Polycurve with a line.

https://dictionary.dynamobim.com/#/Geometry/PolyCurve/Action/CloseWithLine

This can happen before the remember node if I am not mistaken.

1 Like

@JacobSmall

Unfortunately, the same error message (see also fig. 1).
Also when I put the “Polycurve.CloseWithLine” after the remember node.


Fig. 1

Source data:
202101_D4R_0027_C0_LI_N_2D_GD_Scope-Boxes-for-Masterplan.dyn (297.8 KB)

One of the lines doesn’t connect the next line in sequence accurately, but traces back over itself. This appears to be the line which was generated by the close with line node. Built a quick graph to help diagnose where this is happening, but since this is coming from Revit a tab selection in Revit might be an easier way to find it.

1 Like

@JacobSmall

Great problem solved, thank you!


Fig. 1

1 Like