Skip to content

Commit

Permalink
Fix on 'Query Sheets' when wildcard is used as input.
Browse files Browse the repository at this point in the history
  • Loading branch information
kike-garbo committed Nov 15, 2023
1 parent 9aef998 commit cd49ea3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/RhinoInside.Revit.GH/Components/Sheets/QuerySheets.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,15 @@ protected override void TrySolveInstance(IGH_DataAccess DA)
if (!nofilterIsPlaceholder)
sheets = sheets.Where((x) => x.IsPlaceholder == IsPlaceholder);

if (!string.IsNullOrEmpty(number))
sheets = sheets.Where(x => x.SheetNumber.IsSymbolNameLike(number));

if (!string.IsNullOrEmpty(name))
sheets = sheets.Where(x => x.Name.IsSymbolNameLike(name));

if (!string.IsNullOrEmpty(date))
sheets = sheets.Where(x => x.get_Parameter(ARDB.BuiltInParameter.SHEET_ISSUE_DATE).AsString().IsSymbolNameLike(date));

DA.SetDataList
(
"Sheets",
Expand Down

0 comments on commit cd49ea3

Please sign in to comment.