Any reason not to use the built in python dictionary capability? Assuming you are near current build (I think 2.6) the Python dictionary should output as a Dynamo dictionary.
hi @jacob.small ,
I use atm 2.10
I just was wondering why it doesnât work by using the DesignScript Syntax. Maybe I have to import sth special? Or are the action Nodes not supported? What is the reason? Iâm just curious
Thanks
I think you misunderstand the âDesignScript Syntaxâ in your Python code. This is actually DotNet Syntax and by calling
dict.Keys
dict.Values
you are not calling the Dynamo Functions (Designscript) but you are calling the DotNet properties of the dictionary
If you want to use the actual Dynamo Functions, you need to reference the right .dll file. But I would not recommend that for Dictionaries, because you can already do so much with the built in dictionary capability, just like @jacob.small suggested
oh ok, thanks @Joelmick for making it more clear!
Letâs just assume I want to use the Components Node in the Python code, for whatever reason. How do you know which dll file I have to reference and import?