
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi fellow Reviteers,
I want to check a project to see if the area volume computations is set. I've searched the net and saw complaints (back to 2011) of this not working. When I try the code below in Revit 2015, it still doesn't seem to work 😞
AreaVolumeSettings settings = AreaVolumeSettings.GetAreaVolumeSettings(doc);
if (settings.ComputeVolumes) return; // HERE IT KEEPS ON SAYING ComputeVolumes is false ??
using (Transaction t = new Transaction(doc, "Turn on volume calculation"))
{
t.Start();
settings.ComputeVolumes = true; // AND WHEN I CHECK IT IS SET TO TRY
t.Commit();
}
// when i run this code again, it will say the value is false and set it to true again. Also when I check the GUI dialog, it also isn't set ???
So, why is this bug still present and is there a workaround ?
Solved! Go to Solution.