DynamoDS / DynamoRevit

Dynamo Libraries for Revit
https://dynamobim.org
338 stars 188 forks source link

re-generation of elements created via design script creates infinate loop in auto run mode #2493

Open JacobSmall opened 4 years ago

JacobSmall commented 4 years ago

`## Dynamo version

2.1 but persists back to 2.0.3 (haven't checked prior versions).

Revit version

2020

Operating system

Windows 10

What did you do?

Using the attached revit file, open 'edited input creates loop.dyn' and set the run mode to automatic. Then change the variable input.

What did you expect to see?

The graph re-execute once causing the created elements to change count and position.

What did you see instead?

infinate loop of the dyn executing until force quit as indicated in the resulting journal. Conversely if the FamilyInstance.ByPoint node is used there is no crash (see the 'no loop.dyn' file).

2020_02_07 - infinate loop via design script.zip

ZiyunShang commented 4 years ago

@mjkkirschner @QilongTang , I can reproduce this issue in the latest DynamoRevit version. this issue may relate to "Code block" Node, could you take a look at this?