Jan-11-2019, 07:16 AM
Hi Guys
im trying to write a script for Dynamo where i compare two values, from two 'elements' and if a==b AND c==d then copy the value from x to y.
my current code does not return any errors but the value does net get copied over.
Any help would be much appreciated.
im trying to write a script for Dynamo where i compare two values, from two 'elements' and if a==b AND c==d then copy the value from x to y.
my current code does not return any errors but the value does net get copied over.
Any help would be much appreciated.
fixtures = UnwrapElement(IN[0]) circuits = UnwrapElement(IN[1]) TransactionManager.Instance.EnsureInTransaction(doc) for i in fixtures: a = i.LookupParameter("Comments") b = i.LookupParameter("Panel") c = i.LookupParameter("Circuit Number") for j in circuits: d = j.LookupParameter("Comments") e = j.LookupParameter("Panel") f = j.LookupParameter("Circtuit Number") if b==e and c==f: a.Set(d) TransactionManager.Instance.TransactionTaskDone()PS - my first of hopefully many posts in this community :D