I’m working on a Dynamo script that’s supposed to create shared parameters in Revit using data from an Excel file. However, every time I run the script, Dynamo crashes. I’ve double-checked my workflow and connections but can’t seem to figure out what’s going wrong.
Could someone please take a look at my script to identify any missing steps or errors that might be causing the crash? Any guidance or suggestions would be greatly appreciated!
Freeze the final node so it doesn’t run, execute the graph, expand node previews on each of the nodes leading to this step, and then look to see if something in that area is off (I.e. any null values or numbers).
Also check to see if you can make one shared parameter in a single file using your own (non-excel) input values.
Hello Jacob thanks for taking a look at my script, I did as you said and all seems okay, but when I unfreeze the last node dynamo crashes as before I have manually created a shared parameter ( traditional way through Revit without a problem )
Looks like your values for Spec type and group type are not valid inputs.
I am not at the PC, but I think that they require a parameter group and spec type object not a string, though these aren’t even that as they aren’t wrapped in quotes.
Try using the in-product help (highlight the node and hit F1) to see if there if a working example provided.
Hello Jacob, thanks for your time and effort, I have checked the help and there is nothing much explained as the node is straightforward, and regarding the spec type and the parameter group they are described
Yep - both of those indicate something other than a string so you’ll need to build those objects. This is a change which was added to the Revit API in 2022 and completed in 2023 if I recall.
You can still use your orginal format, but between the grouptype & spectype string lists, you should be able to use python to get the actual required here maybe.
Hello pyXam,
First thank you for taking a look, I have connected the nodes through the Python code but I got the error as shown in the screenshot, I have changed the Pyengine to 2 and got an error as well, could you shed some light, please
T
Below is an example of what you’re trying to accomplish. I used the Orchid package to retrieve spec types and group types by name. As @c.poupin mentioned, one of the parameter information is incorrect; however, all other parameters will be added.
I just wanted to let you know that the script worked perfectly! Thank you so much for taking the time to review and check my Dynamo graph. Your help made a big difference, and I really appreciate your support.
Just a quick note to let you know that the script executed smoothly! I’m truly grateful for the effort you put into checking and improving my Dynamo graph. Your guidance was incredibly helpful, and I can’t thank you enough for your support.
Thanks so much for your assistance!
and for the steel bridge as well
Kind regards