Skip to content

Commit

Permalink
Fix StringValue
Browse files Browse the repository at this point in the history
  • Loading branch information
chuongmep committed Mar 3, 2021
1 parent e0a9a5c commit 685a55f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions RevitElementBipChecker/Viewmodel/ParameterData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 685a55f

Please sign in to comment.