Hello,
How can i call a dictionary either by codeblock or dynamo? Both versions call nothing!
i can just call in python one value! I would like to have all
Is there any syntexError?
Does anybode have a clue?
Thank you, Kind Regards
Andreas
Hello,
How can i call a dictionary either by codeblock or dynamo? Both versions call nothing!
i can just call in python one value! I would like to have all
Is there any syntexError?
Does anybode have a clue?
Thank you, Kind Regards
Andreas
In certain versions of Dynamo, it isn’t possible to output a Python dictionary. I believe this can be done in versions using Dynamo Core 2.5 and later. In earlier versions, an alternative is to output your dictionary’s keys and values separately, and then use nodes to reconstruct your dictionary. This approach works best with a simple dictionary (if you were to use a dictionary of dictionaries, this would be much more difficult). Which version are you using?
mydict = {'key': 'value'}
OUT = mydict.keys(), mydict.values()
You can combine this way:
# Enable Python support and load DesignScript library
from System.Collections.Generic import Dictionary
# inputs
i = {"a":'Apple',"o":'Orange'}
# Place your code below this line
dict = Dictionary[str,object](i)
# Assign your output to the OUT variable.
OUT = dict
Paste your German text here.
@Draxl_Andreas Yes this exactly what it does:
sorry i mean letter a,b,c
Yes what’s the issue with that. Could you be more specific here. May be sketch your goal.