Closed clicketyclackety closed 7 years ago
Hi @clicketyclackety , thanks for reporting this. What versions of Revit / Dynamo are you using? And do you have a 4k monitor?
I work across Revit 15/16/17 and I just tried every single one of them now and it worked perfectly, but Revit 15 was the one causing me grief with the error earlier. I'm not using a 4K monitor but I am using something similar, 2x 1920x1080 monitors rotated to portrait. Like this > [][].
Interesting, I had the same error the other day, but only once. I couldn't reproduce it after restarting Dynamo. I have a 34" screen with a resolution of 3440x1440 px. @clicketyclackety Does this happen with every graph or only with specific files?
Hey @andydandy74 I think it only tends to happen with one very specific script. I can't recall it happening with other scripts. but this script requires an axo and a floor plan to be open at the same time wheras other ones don't have any specific requirements.
What that part of the code does is look for the active window in revit so it can position the UI form at the top left. If the last window that was clicked on in revit is the project browser or the properties panel, It might cause that kind of issue. @andydandy74 , does the form show op correctly on your 4k screen ? I never could test it myself .
@MostafaElAyoubi yeah, no problems with that. @clicketyclackety will the error occur if you remove everything but the nodes that generate the form?
@MostafaElAyoubi: You could filter out the project browser and system browser by querying the view's type (using GetTypeId()) - it'll return null/None.
@andydandy74 Yes I'll do that. It will most definitely solve the first part of the issue. Now I'm not sur what might cause the "squished" form ..
That's probably just from my meddling @MostafaElAyoubi !
Okay I just updated the package (2017.05.15) . This issue should be solved with this fix.
Full error message :
Traceback (most recent call last): File "<string>", Line 775 in <module> IndexError: index out of range: 0
I've tried re-writing it a little and can get it to stop giving me the error message by eliminating line 775 and condensing some parts, however my UI box then does not seem to inherit any dimensions and looks very squished, although still admittedly usable. I don't quite understand what I'm doing but I hope this helps.