Skip to content

Commit ca4979a

Browse files
committed
messaging added
1 parent f5c3536 commit ca4979a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Revit_Core_Engine/Compute/TryGetValueFromSource.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,11 @@ public static Output<bool, object> TryGetValueFromSource(this Element element, P
6767

6868
Parameter param = element?.LookupParameter(valueSource.ParameterName);
6969
if (param == null && valueSource.FromType == null)
70+
{
7071
param = element.Document.GetElement(element.GetTypeId())?.LookupParameter(valueSource.ParameterName);
72+
if (param != null)
73+
BH.Engine.Base.Compute.RecordNote($"Parameter {valueSource.ParameterName} was not found in the instance of element {element.Id.IntegerValue}, but was found in the type.");
74+
}
7175

7276
if (param == null)
7377
{

0 commit comments

Comments
 (0)