How to close a Polycurve

excel
revit
dynamo

#1

Hey

I try to make a closed polycurve out of a list of points (Swiss Coordinatsystem). I’m able to create the polycurve but it’s not closed yet, also with the connection “connectLastToFirst” it doesn’t work.

Does anybody knows how to fix it?

Cheers
Florian


#2

Hi @florian.vuillemin

After Polycurve.ByPoints add Polycurve.Curve to get curves and then connect to outlines.

Good Luck!


#3

Hey @Kulkul

Thanks a lot for your answer. Unfortunately the curve is still not closed, no connection between point 0 and 5


#4

What does the error says?


#5

‘The curves do not form a closed contiguous loop’

so because of the missing part it’s not possible to generate a floor out of the outlines


#6

Drop xlsx file here.


#7

Cant upload a file, but this is the content

y x z

1227202.6272 2695817.5995 595.9000
1227200.9552 2695913.3866 594.9700
1227190.7710 2695913.1722 594.9500
1227190.1222 2695907.5883 595.4500
1227172.5970 2695905.6277 595.4500
1227174.9787 2695817.1169 596.3000


#8

@florian.vuillemin looks good to me:

For Florian.dyn (14.8 KB)


#9

Did you try any of the nodes provided out of the box:

image


#10

@Kulkul so strange, until Points.ByCoordinates i recive exactly the same result but the note PolyCurve.ByPoints wont close it


#11

What do you mean? Show images.

And also did you try my dyn file above?


#12

yes i made exactly the same as you did.
And in the note Point.ByCoordinates i recive exactly the same list as you


#13

@florian.vuillemin Have you tried another node PolyCurve.CloseWithLine node? If it still doesn’t work then uninstall Dynamo 2.x and Install 2.0.1 version from here http://dyn-builds-data.s3-us-west-2.amazonaws.com/DynamoInstall2.0.1.exe