Incorrect Wall Side Info of Wall Sweep
Not applicable
01-21-2019
05:43 AM
I manually create 2 wall sweep both side of wall in Revit. Ideally one wall sweep should have Interior wall side and other should have exterior wall side.
But When I get this WallSide information from WallSweepInfo of WallSweep using APIs.
wallSweep.GetWallSweepInfo().WallSide
It always give us WallSide as Exterior.
I used below code to get all Interior Side wall WallSweeps and it gives zero result.
var doc = commandData.Application.ActiveUIDocument.Document; var collector = new FilteredElementCollector(doc).OfClass(typeof(WallSweep)).ToElements(); var allInteriorSideWallSweep = collector.Cast<WallSweep>() .Where(wallSweep => wallSweep.GetWallSweepInfo().WallSide == WallSide.Interior).ToList(); TaskDialog.Show("Number of Interior wall side Wall Sweeps : ", allInteriorSideWallSweep.Count.ToString());
Is there any way to get correct wall side information from WallSweep info?
Link copied