From 685a55fa857a7154ec4ad9e7dc635d8fcd35b9d3 Mon Sep 17 00:00:00 2001 From: chuongmep <31106432+chuongmep@users.noreply.github.com> Date: Wed, 3 Mar 2021 12:27:23 +0700 Subject: [PATCH] Fix StringValue --- RevitElementBipChecker/Viewmodel/ParameterData.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/RevitElementBipChecker/Viewmodel/ParameterData.cs b/RevitElementBipChecker/Viewmodel/ParameterData.cs index 399a59b..5e10f9a 100644 --- a/RevitElementBipChecker/Viewmodel/ParameterData.cs +++ b/RevitElementBipChecker/Viewmodel/ParameterData.cs @@ -16,8 +16,7 @@ public ParameterData(Parameter parameter,Document doc,bool isinstance=true) this.Type = parameter.GetParameterType(); this.ReadWrite = parameter.IsReadWrite(); this.Value = parameter.GetValue(); - this.StringValue = (StorageType.ElementId == parameter.StorageType) - ? parameter.GetParameterValue2(doc) : parameter.AsValueString(); + this.StringValue = parameter.AsValueString() ?? ""; this.Shared = parameter.Shared(); this.GUID = parameter.Guid(); this.TypeOrInstance = isinstance?"Instance":"Type";