It worked. Thnx! Created an updater as follows -
// Register wall updater with Revit
WallUpdater updater = new WallUpdater(App.ActiveAddInId);
UpdaterRegistry.RegisterUpdater(updater);
ElementClassFilter wallFilter = new ElementClassFilter(typeof(Wall));
pdaterRegistry.AddTrigger(updater.GetUpdaterId(), wallFilter, Element.GetChangeTypeElementAddition());
public class WallUpdater : IUpdater
{
static AddInId m_appId;
static UpdaterId m_updaterId;
// constructor takes the AddInId for the add-in associated with this updater
public WallUpdater(AddInId id)
{
m_appId = id;
m_updaterId = new UpdaterId(m_appId, new Guid("2FAF3F05-E54D-41CF-9ACB-868D063805B9"));
}
public void Execute(UpdaterData data)
{
Document doc = data.GetDocument();
foreach (ElementId addedElemId in data.GetAddedElementIds())
{
Wall wall = doc.GetElement(addedElemId) as Wall;
if (wall != null)
{
Parameter param = wall.LookupParameter(WevrConstants.IsPanelized);
if (null != param)
{
param.Set(0);
}
}
}
}
......
}