Snapshot import_file failed

I’m receiving this error message when open/importing .pomf into both the standalone model editor and in Revit ‘Export Model’ therefore unable to export to .gem file.

Revit 2026.1
Pollination.Revit.2026 2.300.0.0

Log:

⌛ init
[Put]: tl-records success
✅ Snapshot loaded!
🐍 20 modules installed!
Get SDK version...
🐍 import_file script is running...
✅ Snapshot opened!
import_file failed. Error message: Error: Traceback (most recent call last): File "/lib/python312.zip/_pyodide/_base.py", line 597, in eval_code_async await CodeRunner( File "/lib/python312.zip/_pyodide/_base.py", line 411, in run_async coroutine = eval(self.code, globals, locals) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<exec>", line 51, in <module> File "<exec>", line 23, in from_dfjson File "/home/pyodide/dragonfly/model.py", line 212, in from_dict building.add_roof_geometry(bldg_roof, tol) File "/home/pyodide/dragonfly/building.py", line 1153, in add_roof_geometry if rf_geo.max.z > st_ht: # make sure it is not below all stories ^^^^^ UnboundLocalError: cannot access local variable 'st_ht' where it is not associated with a value
[Put]: preferences succes

Hi @frontieredesign,

Sorry about that. This is a bug that has been fixed in V2. Try switching to V2 and the issue will be resolved. See here:

2 Likes