Lines to PolyCurves NULL

Hi all,

Any clues?

The lines are from a floor in linked file.
It keeps getting one polycurve as a NULL.

I tried different Tolerances, but nothing.

@Bogey

sometimes dynamo has issues to create the revit geometry. If it just one i would skip it.

x == null ? false : true

or in python:

curves = IN[0]

for curve in curves:
    try:
        if curve != Null:
            output.append(curve)
    except:
       continue

you could also implement an exception handler, but i think the error will give you no hint
like:

except:
    import traceback
    output.append(traceback.format_exc())

if not look at the element:

  • is it model clear with angels f.e. 90.000000000434334
  • unexpected multi lines along a curve
  • arcs, circles, nurbe curves a.s.o.

try to simplify the form

Thanks.
It’s just one, so I skip it :wink:

1 Like