I am getting lost with this one. It should be not that difficult, however it bugs me that i Cant get it to work.
I took took the C# example as base and that should port to python… however it keeps throwing me back. It reaches the messagebox (1) and then throws the exception shown it the picture.
Can anyone point me in the right direction (as it is part of a much larger existion Dynamo script that is working correctly, i would hate to create a new C# version of that just to get passed this issue)?
It looks like I am not able to pass the correct parameters to the Revit API node from Python (Iset). I tried different paths to get a set that way but without any result. Resulst (error) in the picture added.
Yes, yiou are correct. I think I did create a new list in a previous version but that was rejected also. But I will check that out as it might have been a stupid oversight on my part!
Thanks a lot. Yes, i did see it needing the ilist, but failed to convert it (tried multiple ways). Going back to the old code and comparing it, finaly showed me where i went wrong (must have been blind through the code, this is just a very small part). I made a hashset before, but from the elements instead of the id )
If you want I can post the full dyn there later, but it is pretty specific for our company so the CID’s used are not the default CID’s (default CID’s are equal the te Pattern ID’s) so it will not work genericly. It also will need some shared parametes added to the elements we use to track orders and the UI is in dutch.
No need - you’ve got it working again thanks to @c.poupin. If you get stuck again providing a dataset and a dyn that has a minimum reproducible solution.