Familyinstance.ByPoints Slow

Hello,

I have a question about my code that places familyinstance by points.
Problem is that is really slows down the script speed. Is there a solution to speed it up a little bit more :slight_smile:

Attached my Dynamo code inspired by the example on this site

I tried a lot of things but nothing works :frowning:

Slow code.dyn (24.9 KB)

Can you post a sample family and rvt file which provides the level of complexity you need this to work with? My sample test fell apart quickly due to units, and Iโ€™m not sure that my case was valid (I rotated a ceiling 45 degrees to cause the isolines to not follow the ceiling edges).

Hi Jacob,

Thanks for helping me.

Attached you find a link to my Dropbox:

pastedImage

With Select Model Element you have to choose the floor model you see and the family type is the one showed in the picture. Itโ€™s a very simple family so not heavy.

The first time you run the code it is slow and the second time when you change the panel size for example itโ€™s much faster. But i donโ€™t know why itโ€™s slow the first time :frowning:

Thanks