- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I keep getting an error. Any advice? I'm just trying to place a door in the wall based on a parameter selection.
public class Modify_Wall_Modeling : IUpdater
{
static AddInId m_appid;
static UpdaterId m_updaterId;
public Modify_Wall_Modeling(AddInId id)
{
m_appid = id;
m_updaterId = new UpdaterId(m_appid, new Guid("D1B8E39B-FE1E-4C99-949E-93B11B34A0CC"));
}
public void Execute(UpdaterData data)
{
#region updaterUI
Document doc = data.GetDocument();
//Autodesk.Revit.DB.View view = doc.ActiveView as Autodesk.Revit.DB.View;
//PhaseStandardTools phaseStandardTools = new PhaseStandardTools();
//CreateRoofSlab create_roof_slab = new CreateRoofSlab();
//RibbonPanelClass ribbon_panel_class = new RibbonPanelClass();
BuildingComponentClass bcc = new BuildingComponentClass();
BuildingComponentToolsClass bctc = new BuildingComponentToolsClass();
//FilteredElementCollector wall_collector = new FilteredElementCollector(doc,doc.ActiveView.Id).OfClass(typeof(Wall));
foreach (ElementId id in data.GetModifiedElementIds())
{
try
{
Wall wall = doc.GetElement(id) as Wall;
bcc.Wall_Modeling(wall, doc);
}
catch
{
continue;
}
}
#endregion
}
public string GetAdditionalInformation()
{
return "Wall Model Modify";
}
public ChangePriority GetChangePriority()
{
return ChangePriority.InteriorWalls;
}
public UpdaterId GetUpdaterId()
{
return m_updaterId;
}
public string GetUpdaterName()
{
return "Modify Wall Updater";
}
}
Solved! Go to Solution.