Familyinstance. by pointandlevel

Hello,
Im curently working on a script that automaticly places supports on pipes. i use Familyinstance.bypointandlevel. to place the supports. but when i place a ellement on any level besides the base level, the elements are placed at the wrong Z value. When i re-run the script the elements are placed corectly. i think in the first run the elements are placed relative to the selected level. the distance from the element to the level it is placed upon coresponds to the Z coordinatas of the point used to place the elements. but in the second run the elements are placed relative to the base level. Does anyone know why it does this? and how i can fix it?

Hi, welcome to the community!

Would you mind sharing a screen grab of your graph for us to look at?

Thanks,

Mark

1 Like

Hi Mark, here are some images.

This is the first run, the supports are placed on the wrong level.

When i re-run the scipt it places them correctly.

image
the inputs remain the same for the two runs

Hey…

It does seem to be unexpected behaviour… I don’t think it should do that.

As a work around, if you place them, then ‘set parameter value’ and feed the values again, does it work in a single run?

Hope that helps,

Mark

Thanks, it works now on the first run!

1 Like