Hello,
I am trying to set the Yes/No Parameter of the room bounding Built-in Parameter of a linked revit instance.
Parameter linkedModelTypeProp = rvtlink.Document.GetElement(rvtlink.GetTypeId()).get_Parameter(BuiltInParameter.WALL_ATTR_ROOM_BOUNDING);
if (linkedModelTypeProp.AsInteger() == 0)
{
using (Transaction tx = new Transaction(Doc, "Set Room Bounding"))
{
tx.Start();
try
{
linkedModelTypeProp.Set(1);
tx.Commit();
}
catch (Exception ex)
{
tx.RollBack();
TaskDialog.Show("Error", ex.Message);
}
}
}
I get the value of the built-in parameter but it will not change the value with the .Set(1)
The storage type is Integer.
I have tried to create a ParameterValue and then IntegerParameterValue as I have used this method to control other Yes/No Parameters but I am not able to figure out how it works for this built-in yes/no parameter.
Solved! Go to Solution.
Link copied