I’m having trouble with the simple code below to get the IsCentral and AllLocalChangesSavedToCentral property from the BasicFileInfo class.
import clr # Import RevitAPI clr.AddReference("RevitAPI") from Autodesk.Revit.DB import * isCentral = BasicFileInfo.IsCentral changesSaved = BasicFileInfo.AllLocalChangesSavedToCentral OUT = isCentral , changesSaved
What I’m getting as the OUT is a couple of IronPython ReflectedProperty:
Apparently the boolean value stored in IsCentral and AllLocalChangesSavedToCentral is wrapped by IronPython. Is there a way to unwrap this? If not how should I get the actual value inside the parameter?