Surface.PerimeterCurves (output Curve) gives an error at a DetailCurve.ByCurve

Surface.PermimeterCurves (output Curve) gives an error at a DetailCurve.ByCurve (see fig. 1 and fig. 2 and fig. 3).

However, I see the lines in Revit (see fig. 4).


Fig. 1


Fig. 2


Fig. 3


Fig. 4

Do anyone have a solution for this?

Thanks in advance.

However, after closing the Dynamo script, certain lines do disappear (see fig. 5).


Fig. 5

Hi @j.boonen,

First of all, thank you for your indepth explanation what is going wrong!
Those blue lines that you are seeing, are your Curves in Dynamo (All Dynamo Geometry that is not hidden will be blue and can be seen in Revit, but these are not actual Revit Lines).

Also could you share your error-message and maybe the corresponding files so we could also take an indepth look into your problem :slight_smile:

Regards,
Daan

Hi @Daan

First, thank you for your reply.

For the error message see fig. 1 below.


Fig. 1

Source data see download link:
https://wetransfer.com/downloads/99819625265e2faef879fda60289d77220201114193422/8d33abc2d1bb11e719f13a56fd8d16c920201114193443/197144

Thanks in advance.

@Daan


Revit version

Dynamo Version
Dynamo version

@Daan

Could you have viewed the incoming data?

Thanks in advance.

@Daan

The problem seems to be solved by adding the node “Curve.ApproximateWithArcAndLineSegments” see fig. 1.
However, another error has crept in (see fig. 2 and fig. 3)
Do you also have a solution for that?

Thanks in advance !


Fig. 1


Fig. 2


Fig. 3

Why do you have a code block there? Maybe you could try using a List.Flatten node instead

The code block is flattening and getting the first item. You would have to place two nodes instead of one.

Append the DSCore. before the List. to get into the proper namespace. This can also be prevented by uninstalling the Orchid package which isn’t something the original author had installed so it didn’t turn up. If I am not mistaken, the new line should read: DSCore.List.Flatten([a])[0];

@JacobSmall @Daan @DamianSzyjk

Thanks for all the help!

Problem solved.


Fig. 1


Fig. 2

2 Likes