Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello community,
I am using the Analysis from the DB library to get the energy model so I can run some calculations from that model. For anyone interested, this is the piece of code:
EmOpt = EnergyAnalysisDetailModelOptions()
EmOpt.IncludeShadingSurfaces = False
EmOpt.ExportMullions = False
EmOpt.Tier = EnergyAnalysisDetailModelTier.SecondLevelBoundaries
EmOpt.EnergyModelType = EnergyModelType.SpatialElement
tx = Transaction(doc)
tx.Start('create model')
model = EnergyAnalysisDetailModel.Create(doc,EmOpt)
tx.Commit()My problem is that, for large models, it is annoying to have to run this function each time i run the code, even if no changes have been made to the model.
So the question is: is there a way to calculate and store the energy model somewhere in the revit file and access it any time I need to get info from it?
Regards,
Pedro
Solved! Go to Solution.