I am trying to enable and disable the Volume Computations in a Revit project. I found something on the Building Coder but I cannot find anything in the API. The code also seems different than most of the code I have seen from the API. Has anyone accomplished this or have any more information?
This should work.
from Autodesk.DesignScript.Geometry import *
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
from Autodesk.Revit.DB import *
doc = DocumentManager.Instance.CurrentDBDocument
#The inputs to this node will be stored as a list in the IN variables.
results = 
settings = AreaVolumeSettings.GetAreaVolumeSettings(doc)
settings.ComputeVolumes = True
#Assign your output to the OUT variable.
OUT = results
Sean that works perfectly. Thank you so much for your help.
Great to hear. Please mark the post a resolved.