2019-09-26 21:55:30 +10:00
|
|
|
bl_info = {
|
2019-11-17 12:29:02 +11:00
|
|
|
"name": "BlenderBIM",
|
|
|
|
|
"description": "Author, import, and export files in the "
|
2019-09-26 21:55:30 +10:00
|
|
|
"Industry Foundation Classes (.ifc) file format",
|
|
|
|
|
"author": "Dion Moult, IfcOpenShell",
|
|
|
|
|
"blender": (2, 80, 0),
|
2019-11-17 12:40:14 +11:00
|
|
|
"version": (0, 0, 999999),
|
2019-11-17 12:29:02 +11:00
|
|
|
"location": "File > Export, File > Import, Scene / Object / Material / Mesh Properties",
|
2020-03-22 15:25:57 +11:00
|
|
|
"tracker_url": "https://github.com/IfcOpenShell/IfcOpenShell/issues",
|
2019-10-07 21:11:11 +11:00
|
|
|
"category": "Import-Export"
|
|
|
|
|
}
|
2019-09-26 21:55:30 +10:00
|
|
|
|
2019-12-19 15:31:00 +11:00
|
|
|
import os
|
2020-04-07 12:02:44 +10:00
|
|
|
import site
|
2019-12-19 15:31:00 +11:00
|
|
|
|
|
|
|
|
|
2020-04-11 10:37:47 +10:00
|
|
|
# process *.pth in /libs/site/packages to setup globally importable modules
|
|
|
|
|
# 3 levels deep required by occ static ../../ path
|
|
|
|
|
cwd = os.path.dirname(os.path.realpath(__file__))
|
|
|
|
|
site.addsitedir(os.path.join(cwd, "libs", "site", "packages"))
|
2019-09-26 21:55:30 +10:00
|
|
|
|
|
|
|
|
|
2020-04-11 10:37:47 +10:00
|
|
|
# main import
|
|
|
|
|
from .bim import *
|
2019-10-07 21:11:11 +11:00
|
|
|
|
2019-10-08 23:05:27 +11:00
|
|
|
|
2020-04-11 10:37:47 +10:00
|
|
|
# Explicitely expose bim.xx when imported with from blenderbim import *
|
|
|
|
|
# Other bim still are importable using explicit from blenderbim.bim import xxx
|
|
|
|
|
__all__ = ["export_ifc", "import_ifc"]
|
2019-12-19 16:49:27 +11:00
|
|
|
|
2019-09-26 21:55:30 +10:00
|
|
|
|
2020-04-07 12:02:44 +10:00
|
|
|
if __name__ == "__main__":
|
|
|
|
|
register()
|