To run above script I need two parameters. (Input A and Input B).
for input A i have 1 list (refer below snap Blue box) and for input B i have another list of 100 tags (Refer orange box)
Currently using below step to run script :
manually entering “A_” in purple in input A (Green box)
manually entering one by one “EG-0001, EG-0002,…EG-0100” in purple in input B (Green box)
manually entering “B_” in purple in input A (Green box).
repeating step 2.
Now I want to create script for avoid above mentioned step.
any guide on above is much appreciated.
2st run :
Input A = A_
Input B = EG-002
.
.
.
Next run :
Input A = B_
Input B = EG-001
last run :
Input A = F_
Input B = EG-100
so i have to run this script multiple time. which is not best way to use dynamo.
I want dynamo to automate both the input entry with possible combination of 2 list.
Which Elements need to get the values of run 1, which the value of run 2 and so on?
If we know that we have and idea how to do that in 1 run.
I think you should be able to make things work with all the suggestions people made.
If not then you really should be more clear / specific. I also struggle with your question.
I think OP also needs (wants) to group his Elements (in his case Electrix Fictures [EF]) by a key too.
Looks like OP got EFs in different ‘sectors’ and needs to write a value based of the ‘sector’ a EF is in. This is an assumption based of the screenshots in the opening post.
do you mean how do i get those lists in to the input nodes?
if that is what you mean, you dont plug them into the input nodes. delete the input nodes and just plug the list nodes directly into the nodes you want,
You should be able to pull the lists of inputs into the == node directly if you adjust the list lacing to longest and set the first input to level 1 (@@L1). Assuming n elements were selected, you would get a list of n sublists containing a boolean for each input A and input B value.
From there you can use a List.AnyTrue node set to @L2 for the input to get a single boolean value for each element. You can then sure those into your && node and move on with the graph.
The direct connection node not working.
I think I need to develop a new script using the group node.
But again I have two lists.
List 1 contains 6 different inputs.
List 2 contains 100 inputs.
total possible inputs are (6 x 100 = 600).
I have to run the script for all those 600 inputs.
Just want to avoid entering those 600 inputs