RevitAPI: How to create wall sweep?

Wall Sweep’s API class is WallSweep, but there is no method like NewWallSweep under Document.Create object, so how to create it via API? The answer is using static method Create of WallSweep:
public static WallSweep Create(Wall wall, ElementId wallSweepType, WallSweepInfo ..

Code example:

var doc = commandData.Application.ActiveUIDocument.Document;
var uiSel = commandData.Application.ActiveUIDocument.Selection;

try
{
    var reference = uiSel.PickObject(Autodesk.Revit.UI.Selection...

Read more

Leave a Comment