Here are some measures from the BCL that might be helpful:
Import Envelope and Internal Loads From IDF
Inject OSM Geometry into an External IDF
inject_idf_ojbects