Jan-17-2019, 11:51 AM
Thanks for all the suggestions.
By working in my own debugger i eventually found out it was a data type mismatch.
.set() was looking for a String and Revit Parameters are "Parameter" data type.
For anyone stumbling across this in the future:
By working in my own debugger i eventually found out it was a data type mismatch.
.set() was looking for a String and Revit Parameters are "Parameter" data type.
For anyone stumbling across this in the future:
fixtures = UnwrapElement(IN[0]) circuits = UnwrapElement(IN[1]) comments = IN[2] panel = IN[3] circuitNumber = IN[4] debug = [] TransactionManager.Instance.EnsureInTransaction(doc) for i in fixtures: a = i.LookupParameter(comments) b = i.LookupParameter(panel) c = i.LookupParameter(circuitNumber) for j in circuits: d = j.LookupParameter(comments) e = j.LookupParameter(panel) f = j.LookupParameter(circuitNumber) if (b.AsString()==e.AsString()) and (c.AsString()==f.AsString()): a.Set(d.AsString()) TransactionManager.Instance.TransactionTaskDone()