Make all "from" imports relative

This commit is contained in:
Dion Moult
2024-07-18 14:59:17 +10:00
parent cec732138c
commit 52cb9f865f
178 changed files with 337 additions and 336 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ import blenderbim.core.geometry
import blenderbim.core.aggregate import blenderbim.core.aggregate
import blenderbim.core.spatial import blenderbim.core.spatial
import blenderbim.core.style import blenderbim.core.style
from blenderbim.bim.ifc import IfcStore from .ifc import IfcStore
from mathutils import Vector from mathutils import Vector
from typing import Union from typing import Union
from logging import Logger from logging import Logger
+4 -4
View File
@@ -27,10 +27,10 @@ import blenderbim.bim
import blenderbim.tool as tool import blenderbim.tool as tool
import blenderbim.core.owner as core_owner import blenderbim.core.owner as core_owner
from bpy.app.handlers import persistent from bpy.app.handlers import persistent
from blenderbim.bim.ifc import IfcStore from .ifc import IfcStore
from blenderbim.bim.module.owner.prop import get_user_person, get_user_organisation from .module.owner.prop import get_user_person, get_user_organisation
from blenderbim.bim.module.model.data import AuthoringData from .module.model.data import AuthoringData
from blenderbim.bim.module.model.workspace import LIST_OF_TOOLS, TOOLS_TO_CLASSES_MAP from .module.model.workspace import LIST_OF_TOOLS, TOOLS_TO_CLASSES_MAP
from mathutils import Vector from mathutils import Vector
from math import cos, degrees from math import cos, degrees
from typing import Union from typing import Union
+1 -1
View File
@@ -27,7 +27,7 @@ from ifcopenshell.util.doc import get_attribute_doc, get_predefined_type_doc, ge
from mathutils import geometry from mathutils import geometry
from mathutils import Vector from mathutils import Vector
import blenderbim.tool as tool import blenderbim.tool as tool
from blenderbim.bim.ifc import IfcStore from .ifc import IfcStore
from typing import Optional, Callable, Any, Union from typing import Optional, Callable, Any, Union
+1 -1
View File
@@ -31,7 +31,7 @@ import ifcopenshell.ifcopenshell_wrapper
import blenderbim.bim.handler import blenderbim.bim.handler
import blenderbim.tool as tool import blenderbim.tool as tool
from pathlib import Path from pathlib import Path
from blenderbim.tool.brick import BrickStore from ..tool.brick import BrickStore
from typing import Set, Union, Optional, TypedDict, Callable from typing import Set, Union, Optional, TypedDict, Callable
+2 -2
View File
@@ -34,8 +34,8 @@ import ifcopenshell.util.representation
import ifcopenshell.util.shape import ifcopenshell.util.shape
import blenderbim.tool as tool import blenderbim.tool as tool
from itertools import chain, accumulate from itertools import chain, accumulate
from blenderbim.bim.ifc import IfcStore, IFC_CONNECTED_TYPE from .ifc import IfcStore, IFC_CONNECTED_TYPE
from blenderbim.tool.loader import OBJECT_DATA_TYPE from ..tool.loader import OBJECT_DATA_TYPE
from typing import Dict, Union, Optional, Any from typing import Dict, Union, Optional, Any
@@ -23,7 +23,7 @@ import blenderbim.tool as tool
import blenderbim.core.aggregate as core import blenderbim.core.aggregate as core
import blenderbim.core.spatial import blenderbim.core.spatial
import blenderbim.bim.handler import blenderbim.bim.handler
from blenderbim.bim.ifc import IfcStore from ...ifc import IfcStore
class BIM_OT_aggregate_assign_object(bpy.types.Operator, tool.Ifc.Operator): class BIM_OT_aggregate_assign_object(bpy.types.Operator, tool.Ifc.Operator):
@@ -17,8 +17,8 @@
# along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>. # along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>.
import bpy import bpy
from blenderbim.bim.prop import StrProperty, Attribute from ...prop import StrProperty, Attribute
from blenderbim.bim.module.spatial.data import SpatialData from ..spatial.data import SpatialData
from bpy.types import PropertyGroup from bpy.types import PropertyGroup
from bpy.props import ( from bpy.props import (
PointerProperty, PointerProperty,
@@ -17,9 +17,9 @@
# along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>. # along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>.
from bpy.types import Panel from bpy.types import Panel
from blenderbim.bim.module.aggregate.data import AggregateData from .data import AggregateData
from blenderbim.bim.module.group.data import GroupsData, ObjectGroupsData from ..group.data import GroupsData, ObjectGroupsData
from blenderbim.bim.ifc import IfcStore from ...ifc import IfcStore
import blenderbim.tool as tool import blenderbim.tool as tool
@@ -25,7 +25,7 @@ import blenderbim.bim.helper
import blenderbim.bim.handler import blenderbim.bim.handler
import blenderbim.tool as tool import blenderbim.tool as tool
import blenderbim.core.attribute as core import blenderbim.core.attribute as core
from blenderbim.bim.ifc import IfcStore from ...ifc import IfcStore
class EnableEditingAttributes(bpy.types.Operator): class EnableEditingAttributes(bpy.types.Operator):
@@ -17,8 +17,8 @@
# along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>. # along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>.
import bpy import bpy
from blenderbim.bim.ifc import IfcStore from ...ifc import IfcStore
from blenderbim.bim.prop import StrProperty, Attribute from ...prop import StrProperty, Attribute
from bpy.types import PropertyGroup from bpy.types import PropertyGroup
from bpy.props import ( from bpy.props import (
PointerProperty, PointerProperty,
@@ -18,8 +18,8 @@
import blenderbim.bim.helper import blenderbim.bim.helper
from bpy.types import Panel from bpy.types import Panel
from blenderbim.bim.ifc import IfcStore from ...ifc import IfcStore
from blenderbim.bim.module.attribute.data import AttributesData from .data import AttributesData
def draw_ui(context, layout, attributes): def draw_ui(context, layout, attributes):
@@ -30,7 +30,7 @@ import ifcopenshell.util.unit
import blenderbim.bim.module.bcf.prop as bcf_prop import blenderbim.bim.module.bcf.prop as bcf_prop
from . import bcfstore from . import bcfstore
from pathlib import Path from pathlib import Path
from blenderbim.bim.ifc import IfcStore from ...ifc import IfcStore
from math import radians, degrees, atan, tan, cos, sin from math import radians, degrees, atan, tan, cos, sin
from mathutils import Vector, Matrix, Euler, geometry from mathutils import Vector, Matrix, Euler, geometry
from xsdata.models.datatype import XmlDateTime from xsdata.models.datatype import XmlDateTime
@@ -18,7 +18,7 @@
import bpy import bpy
from . import bcfstore from . import bcfstore
from blenderbim.bim.prop import StrProperty from ...prop import StrProperty
from bpy.types import PropertyGroup from bpy.types import PropertyGroup
from bpy.props import ( from bpy.props import (
PointerProperty, PointerProperty,
@@ -35,9 +35,9 @@ import blenderbim.tool as tool
import blenderbim.bim.import_ifc as import_ifc import blenderbim.bim.import_ifc as import_ifc
from math import pi, inf, degrees, acos, radians from math import pi, inf, degrees, acos, radians
from mathutils import Vector, Matrix from mathutils import Vector, Matrix
from blenderbim.bim.ifc import IfcStore from ...ifc import IfcStore
from blenderbim.bim.module.model.decorator import ProfileDecorator from ..model.decorator import ProfileDecorator
from blenderbim.bim.module.boundary.decorator import BoundaryDecorator from .decorator import BoundaryDecorator
import blenderbim.core import blenderbim.core
import blenderbim.core.geometry import blenderbim.core.geometry
@@ -18,7 +18,7 @@
import bpy import bpy
from bpy.types import PropertyGroup from bpy.types import PropertyGroup
from blenderbim.bim.prop import ObjProperty from ...prop import ObjProperty
from bpy.props import ( from bpy.props import (
PointerProperty, PointerProperty,
StringProperty, StringProperty,
@@ -19,9 +19,9 @@
import bpy import bpy
import blenderbim.bim.helper import blenderbim.bim.helper
from bpy.types import Panel, UIList from bpy.types import Panel, UIList
from blenderbim.bim.ifc import IfcStore from ...ifc import IfcStore
import blenderbim.tool as tool import blenderbim.tool as tool
from blenderbim.bim.module.boundary.data import SpaceBoundariesData from .data import SpaceBoundariesData
class BIM_PT_SceneBoundaries(Panel): class BIM_PT_SceneBoundaries(Panel):
@@ -18,7 +18,7 @@
import bpy import bpy
import blenderbim.tool as tool import blenderbim.tool as tool
from blenderbim.tool.brick import BrickStore from ....tool.brick import BrickStore
try: try:
from rdflib import URIRef, BNode from rdflib import URIRef, BNode
@@ -22,8 +22,8 @@ import ifcopenshell.api
import blenderbim.tool as tool import blenderbim.tool as tool
import blenderbim.core.brick as core import blenderbim.core.brick as core
import blenderbim.bim.handler import blenderbim.bim.handler
from blenderbim.bim.ifc import IfcStore from ...ifc import IfcStore
from blenderbim.tool.brick import BrickStore from ....tool.brick import BrickStore
class LoadBrickProject(bpy.types.Operator, tool.Ifc.Operator): class LoadBrickProject(bpy.types.Operator, tool.Ifc.Operator):
@@ -17,8 +17,8 @@
# along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>. # along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>.
import bpy import bpy
from blenderbim.bim.module.brick.data import BrickschemaData, BrickschemaReferencesData from .data import BrickschemaData, BrickschemaReferencesData
from blenderbim.bim.prop import StrProperty, Attribute from ...prop import StrProperty, Attribute
from bpy.types import PropertyGroup from bpy.types import PropertyGroup
from bpy.props import ( from bpy.props import (
PointerProperty, PointerProperty,
@@ -32,7 +32,7 @@ from bpy.props import (
) )
import blenderbim.core.brick as core import blenderbim.core.brick as core
import blenderbim.tool.brick as tool import blenderbim.tool.brick as tool
from blenderbim.tool.brick import BrickStore from ....tool.brick import BrickStore
def update_active_brick_index(self, context): def update_active_brick_index(self, context):
BrickschemaData.is_loaded = False BrickschemaData.is_loaded = False
@@ -18,9 +18,9 @@
import blenderbim.tool as tool import blenderbim.tool as tool
from bpy.types import Panel, UIList from bpy.types import Panel, UIList
from blenderbim.bim.helper import prop_with_search from ...helper import prop_with_search
from blenderbim.bim.module.brick.data import BrickschemaData, BrickschemaReferencesData from .data import BrickschemaData, BrickschemaReferencesData
from blenderbim.tool.brick import BrickStore from ....tool.brick import BrickStore
class BIM_PT_brickschema(Panel): class BIM_PT_brickschema(Panel):
@@ -19,7 +19,7 @@
import bpy import bpy
import bsdd import bsdd
import blenderbim.tool as tool import blenderbim.tool as tool
from blenderbim.core import bsdd as core from ....core import bsdd as core
class LoadBSDDDomains(bpy.types.Operator): class LoadBSDDDomains(bpy.types.Operator):
@@ -18,7 +18,7 @@
import bpy import bpy
from bpy.types import PropertyGroup from bpy.types import PropertyGroup
from blenderbim.bim.prop import Attribute, StrProperty from ...prop import Attribute, StrProperty
from bpy.props import ( from bpy.props import (
PointerProperty, PointerProperty,
StringProperty, StringProperty,
@@ -18,7 +18,7 @@
import blenderbim.tool as tool import blenderbim.tool as tool
from bpy.types import Panel, UIList from bpy.types import Panel, UIList
from blenderbim.bim.ifc import IfcStore from ...ifc import IfcStore
class BIM_PT_bsdd(Panel): class BIM_PT_bsdd(Panel):
@@ -17,7 +17,7 @@
# along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>. # along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>.
import bpy import bpy
from blenderbim.bim.module.model.data import AuthoringData from ..model.data import AuthoringData
from bpy.types import PropertyGroup from bpy.types import PropertyGroup
from math import pi from math import pi
@@ -22,7 +22,7 @@ import blenderbim.tool as tool
import blenderbim.bim.module.type.prop as type_prop import blenderbim.bim.module.type.prop as type_prop
import ifcopenshell.util.unit import ifcopenshell.util.unit
from bpy.types import WorkSpaceTool from bpy.types import WorkSpaceTool
from blenderbim.bim.module.model.data import AuthoringData, RailingData, RoofData from ..model.data import AuthoringData, RailingData, RoofData
class CadTool(WorkSpaceTool): class CadTool(WorkSpaceTool):
@@ -26,8 +26,8 @@ import ifcopenshell
import blenderbim.tool as tool import blenderbim.tool as tool
from math import radians from math import radians
from mathutils import Matrix, Vector from mathutils import Matrix, Vector
from blenderbim.bim.ifc import IfcStore from ...ifc import IfcStore
from blenderbim.bim.module.clash.decorator import ClashDecorator from .decorator import ClashDecorator
class ExportClashSets(bpy.types.Operator): class ExportClashSets(bpy.types.Operator):
@@ -17,7 +17,7 @@
# along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>. # along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>.
import bpy import bpy
from blenderbim.bim.prop import StrProperty, Attribute, BIMFilterGroup from ...prop import StrProperty, Attribute, BIMFilterGroup
from bpy.types import PropertyGroup from bpy.types import PropertyGroup
from bpy.props import ( from bpy.props import (
PointerProperty, PointerProperty,
@@ -19,7 +19,7 @@
import bpy import bpy
import blenderbim.bim.helper import blenderbim.bim.helper
from bpy.types import Panel from bpy.types import Panel
from blenderbim.bim.module.clash.data import ClashData from .data import ClashData
class BIM_PT_ifcclash(Panel): class BIM_PT_ifcclash(Panel):
@@ -21,7 +21,7 @@ import ifcopenshell
import ifcopenshell.util.date import ifcopenshell.util.date
import ifcopenshell.util.classification import ifcopenshell.util.classification
import blenderbim.tool as tool import blenderbim.tool as tool
from blenderbim.bim.ifc import IfcStore from ...ifc import IfcStore
def refresh(): def refresh():
@@ -24,7 +24,7 @@ import ifcopenshell.util.classification
import ifcopenshell.util.element import ifcopenshell.util.element
import blenderbim.tool as tool import blenderbim.tool as tool
import blenderbim.bim.helper import blenderbim.bim.helper
from blenderbim.bim.ifc import IfcStore from ...ifc import IfcStore
class LoadClassificationLibrary(bpy.types.Operator, tool.Ifc.Operator): class LoadClassificationLibrary(bpy.types.Operator, tool.Ifc.Operator):
@@ -18,9 +18,9 @@
import bpy import bpy
import blenderbim.bim.helper import blenderbim.bim.helper
from blenderbim.bim.ifc import IfcStore from ...ifc import IfcStore
from blenderbim.bim.prop import StrProperty, Attribute from ...prop import StrProperty, Attribute
from blenderbim.bim.module.classification.data import ClassificationsData, ClassificationReferencesData from .data import ClassificationsData, ClassificationReferencesData
from bpy.types import PropertyGroup from bpy.types import PropertyGroup
from bpy.props import ( from bpy.props import (
PointerProperty, PointerProperty,
@@ -20,8 +20,8 @@ import blenderbim.bim.helper
import blenderbim.tool as tool import blenderbim.tool as tool
import blenderbim.bim.module.classification.prop as classification_prop import blenderbim.bim.module.classification.prop as classification_prop
from bpy.types import Panel, UIList from bpy.types import Panel, UIList
from blenderbim.bim.ifc import IfcStore from ...ifc import IfcStore
from blenderbim.bim.module.classification.data import ( from .data import (
ClassificationsData, ClassificationsData,
ClassificationReferencesData, ClassificationReferencesData,
MaterialClassificationsData, MaterialClassificationsData,
@@ -22,7 +22,7 @@ import ifcopenshell.api
import ifcopenshell.util.attribute import ifcopenshell.util.attribute
import blenderbim.bim.helper import blenderbim.bim.helper
import blenderbim.tool as tool import blenderbim.tool as tool
from blenderbim.bim.ifc import IfcStore from ...ifc import IfcStore
class LoadObjectives(bpy.types.Operator): class LoadObjectives(bpy.types.Operator):
@@ -19,7 +19,7 @@
import bpy import bpy
from ifcopenshell.util.doc import get_entity_doc from ifcopenshell.util.doc import get_entity_doc
import blenderbim.tool as tool import blenderbim.tool as tool
from blenderbim.bim.prop import Attribute from ...prop import Attribute
from bpy.types import PropertyGroup from bpy.types import PropertyGroup
from bpy.props import ( from bpy.props import (
PointerProperty, PointerProperty,
@@ -17,9 +17,9 @@
# along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>. # along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>.
from bpy.types import Panel, UIList from bpy.types import Panel, UIList
from blenderbim.bim.ifc import IfcStore from ...ifc import IfcStore
from blenderbim.bim.helper import draw_attributes from ...helper import draw_attributes
from blenderbim.bim.module.constraint.data import ConstraintsData, ObjectConstraintsData from .data import ConstraintsData, ObjectConstraintsData
class BIM_PT_constraints(Panel): class BIM_PT_constraints(Panel):
@@ -21,7 +21,7 @@ import blenderbim.tool as tool
import blenderbim.core.context as core import blenderbim.core.context as core
import blenderbim.bim.module.context.data import blenderbim.bim.module.context.data
import blenderbim.bim.handler import blenderbim.bim.handler
from blenderbim.bim.ifc import IfcStore from ...ifc import IfcStore
class AddContext(bpy.types.Operator, tool.Ifc.Operator): class AddContext(bpy.types.Operator, tool.Ifc.Operator):
@@ -17,8 +17,8 @@
# along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>. # along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>.
import bpy import bpy
from blenderbim.bim.prop import StrProperty, Attribute from ...prop import StrProperty, Attribute
from blenderbim.bim.module.context.data import ContextData from .data import ContextData
from bpy.types import PropertyGroup from bpy.types import PropertyGroup
from bpy.props import ( from bpy.props import (
PointerProperty, PointerProperty,
@@ -19,7 +19,7 @@
import bpy import bpy
import blenderbim.bim.helper import blenderbim.bim.helper
import blenderbim.tool as tool import blenderbim.tool as tool
from blenderbim.bim.module.context.data import ContextData from .data import ContextData
class BIM_PT_context(bpy.types.Panel): class BIM_PT_context(bpy.types.Panel):
@@ -19,10 +19,10 @@
import bpy import bpy
import ifcopenshell.api import ifcopenshell.api
import blenderbim.tool as tool import blenderbim.tool as tool
from blenderbim.bim.ifc import IfcStore from ...ifc import IfcStore
from blenderbim.bim.module.classification.data import CostClassificationsData from ..classification.data import CostClassificationsData
from blenderbim.bim.module.cost.data import CostSchedulesData, CostItemRatesData, CostItemQuantitiesData from .data import CostSchedulesData, CostItemRatesData, CostItemQuantitiesData
from blenderbim.bim.prop import StrProperty, Attribute from ...prop import StrProperty, Attribute
from bpy.types import PropertyGroup from bpy.types import PropertyGroup
from bpy.props import ( from bpy.props import (
PointerProperty, PointerProperty,
@@ -19,8 +19,8 @@
import blenderbim.bim.helper import blenderbim.bim.helper
import blenderbim.bim.module.cost.prop as CostProp import blenderbim.bim.module.cost.prop as CostProp
from bpy.types import Panel, UIList from bpy.types import Panel, UIList
from blenderbim.bim.ifc import IfcStore from ...ifc import IfcStore
from blenderbim.bim.module.cost.data import CostSchedulesData from .data import CostSchedulesData
from typing import Any from typing import Any
@@ -17,7 +17,7 @@
# along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>. # along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>.
import bpy import bpy
from blenderbim.bim.prop import StrProperty, Attribute from ...prop import StrProperty, Attribute
#from blenderbim.bim.module.spatial.data import SpatialData #from blenderbim.bim.module.spatial.data import SpatialData
from bpy.types import PropertyGroup from bpy.types import PropertyGroup
from bpy.props import ( from bpy.props import (
@@ -21,10 +21,10 @@ import os
import bpy import bpy
import ifcopenshell import ifcopenshell
import blenderbim.tool as tool import blenderbim.tool as tool
from blenderbim.bim.helper import prop_with_search from ...helper import prop_with_search
from blenderbim.bim.module.model.data import AuthoringData from ..model.data import AuthoringData
from bpy.types import WorkSpaceTool from bpy.types import WorkSpaceTool
from blenderbim.bim.ifc import IfcStore from ...ifc import IfcStore
import blenderbim.bim.handler import blenderbim.bim.handler
@@ -21,7 +21,7 @@ import json
import ifcopenshell import ifcopenshell
import ifcopenshell.util.element import ifcopenshell.util.element
from math import degrees, atan2 from math import degrees, atan2
from blenderbim.bim.ifc import IfcStore from ...ifc import IfcStore
from .api import Api from .api import Api
@@ -26,8 +26,8 @@ import ifcopenshell
import ifcopenshell.util.selector import ifcopenshell.util.selector
import blenderbim.tool as tool import blenderbim.tool as tool
import blenderbim.bim.module.drawing.scheduler as scheduler import blenderbim.bim.module.drawing.scheduler as scheduler
from blenderbim.bim.ifc import IfcStore from ...ifc import IfcStore
from blenderbim.bim.handler import refresh_ui_data from ...handler import refresh_ui_data
class AddCsvAttribute(bpy.types.Operator): class AddCsvAttribute(bpy.types.Operator):
@@ -17,7 +17,7 @@
# along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>. # along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>.
import bpy import bpy
from blenderbim.bim.prop import StrProperty, BIMFilterGroup from ...prop import StrProperty, BIMFilterGroup
from bpy.types import PropertyGroup from bpy.types import PropertyGroup
from bpy.props import ( from bpy.props import (
PointerProperty, PointerProperty,
@@ -18,8 +18,8 @@
import blenderbim.bim.helper import blenderbim.bim.helper
from bpy.types import Panel from bpy.types import Panel
from blenderbim.bim.ifc import IfcStore from ...ifc import IfcStore
from blenderbim.bim.module.search.data import SearchData from ..search.data import SearchData
class BIM_PT_ifccsv(Panel): class BIM_PT_ifccsv(Panel):
@@ -23,6 +23,7 @@ import time
import random import random
import logging import logging
import platform import platform
import importlib
import subprocess import subprocess
import ifcopenshell import ifcopenshell
import ifcopenshell.api import ifcopenshell.api
@@ -35,9 +36,11 @@ import blenderbim.core.debug as core
import blenderbim.bim.handler import blenderbim.bim.handler
import blenderbim.bim.import_ifc as import_ifc import blenderbim.bim.import_ifc as import_ifc
from pathlib import Path from pathlib import Path
from blenderbim import get_debug_info, format_debug_info from ...ifc import IfcStore
from blenderbim.bim.ifc import IfcStore
bbim = importlib.import_module("....", package=__package__)
get_debug_info = bbim.get_debug_info
format_debug_info = bbim.format_debug_info
class CopyDebugInformation(bpy.types.Operator): class CopyDebugInformation(bpy.types.Operator):
bl_idname = "bim.copy_debug_information" bl_idname = "bim.copy_debug_information"
@@ -16,7 +16,7 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>. # along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>.
from blenderbim.bim.prop import StrProperty, Attribute from ...prop import StrProperty, Attribute
from bpy.types import PropertyGroup from bpy.types import PropertyGroup
from bpy.props import ( from bpy.props import (
PointerProperty, PointerProperty,
@@ -27,7 +27,7 @@
# panels, buttons, labels, and input fields are laid out. # panels, buttons, labels, and input fields are laid out.
import bpy import bpy
from blenderbim.bim.module.demo.data import DemoData from .data import DemoData
# Every panel in the interface correlates to one of these classes. If you enable # Every panel in the interface correlates to one of these classes. If you enable
# the "Developer Extras" option in Blender, then you can actually right click on # the "Developer Extras" option in Blender, then you can actually right click on
@@ -22,7 +22,7 @@ import logging
import ifcopenshell import ifcopenshell
import blenderbim.bim.handler import blenderbim.bim.handler
import blenderbim.tool as tool import blenderbim.tool as tool
from blenderbim.bim.ifc import IfcStore from ...ifc import IfcStore
class SelectDiffJsonFile(bpy.types.Operator): class SelectDiffJsonFile(bpy.types.Operator):
@@ -17,8 +17,8 @@
# along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>. # along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>.
import bpy import bpy
from blenderbim.bim.prop import StrProperty, BIMFilterGroup from ...prop import StrProperty, BIMFilterGroup
from blenderbim.bim.module.diff.data import DiffData from .data import DiffData
from bpy.types import PropertyGroup from bpy.types import PropertyGroup
from bpy.props import ( from bpy.props import (
PointerProperty, PointerProperty,
@@ -17,8 +17,8 @@
# along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>. # along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>.
from bpy.types import Panel from bpy.types import Panel
from blenderbim.bim.ifc import IfcStore from ...ifc import IfcStore
from blenderbim.bim.module.diff.data import DiffData from .data import DiffData
import blenderbim.bim.helper import blenderbim.bim.helper
import blenderbim.tool as tool import blenderbim.tool as tool
@@ -22,7 +22,7 @@ import ifcopenshell.api
import ifcopenshell.util.attribute import ifcopenshell.util.attribute
import blenderbim.tool as tool import blenderbim.tool as tool
import blenderbim.core.document as core import blenderbim.core.document as core
from blenderbim.bim.ifc import IfcStore from ...ifc import IfcStore
class LoadProjectDocuments(bpy.types.Operator, tool.Ifc.Operator): class LoadProjectDocuments(bpy.types.Operator, tool.Ifc.Operator):
@@ -17,7 +17,7 @@
# along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>. # along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>.
import bpy import bpy
from blenderbim.bim.prop import StrProperty, Attribute from ...prop import StrProperty, Attribute
from bpy.types import PropertyGroup from bpy.types import PropertyGroup
from bpy.props import ( from bpy.props import (
PointerProperty, PointerProperty,
@@ -17,9 +17,9 @@
# along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>. # along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>.
from bpy.types import Panel, UIList from bpy.types import Panel, UIList
from blenderbim.bim.ifc import IfcStore from ...ifc import IfcStore
from blenderbim.bim.helper import draw_attributes from ...helper import draw_attributes
from blenderbim.bim.module.document.data import DocumentData, ObjectDocumentData from .data import DocumentData, ObjectDocumentData
class BIM_PT_documents(Panel): class BIM_PT_documents(Panel):
@@ -32,9 +32,9 @@ from bpy.types import SpaceView3D
from mathutils import Vector, Matrix from mathutils import Vector, Matrix
from bpy_extras.view3d_utils import location_3d_to_region_2d from bpy_extras.view3d_utils import location_3d_to_region_2d
from gpu_extras.batch import batch_for_shader from gpu_extras.batch import batch_for_shader
from blenderbim.bim.module.drawing.data import DecoratorData, DrawingsData from .data import DecoratorData, DrawingsData
from blenderbim.bim.module.drawing.shaders import add_verts_sequence, add_offsets from .shaders import add_verts_sequence, add_offsets
from blenderbim.bim.module.drawing.helper import format_distance from .helper import format_distance
from timeit import default_timer as timer from timeit import default_timer as timer
from functools import lru_cache from functools import lru_cache
from typing import Optional, Iterator, Type, Union from typing import Optional, Iterator, Type, Union
@@ -23,7 +23,7 @@ from bpy import types
from mathutils import Vector from mathutils import Vector
from mathutils import geometry from mathutils import geometry
from bpy_extras import view3d_utils from bpy_extras import view3d_utils
from blenderbim.bim.module.drawing.shaders import DotsGizmoShader, ExtrusionGuidesShader from .shaders import DotsGizmoShader, ExtrusionGuidesShader
from ifcopenshell.util.unit import si_conversions from ifcopenshell.util.unit import si_conversions
@@ -47,14 +47,14 @@ import blenderbim.bim.module.drawing.sheeter as sheeter
import blenderbim.bim.module.drawing.scheduler as scheduler import blenderbim.bim.module.drawing.scheduler as scheduler
import blenderbim.bim.module.drawing.helper as helper import blenderbim.bim.module.drawing.helper as helper
import blenderbim.bim.export_ifc import blenderbim.bim.export_ifc
from blenderbim.bim.module.drawing.decoration import CutDecorator from .decoration import CutDecorator
from blenderbim.bim.module.drawing.data import DecoratorData, DrawingsData from .data import DecoratorData, DrawingsData
from typing import NamedTuple, List, Union, Optional, Literal from typing import NamedTuple, List, Union, Optional, Literal
from lxml import etree from lxml import etree
from mathutils import Vector, Color, Matrix from mathutils import Vector, Color, Matrix
from timeit import default_timer as timer from timeit import default_timer as timer
from blenderbim.bim.module.drawing.prop import RasterStyleProperty, RASTER_STYLE_PROPERTIES_EXCLUDE from .prop import RasterStyleProperty, RASTER_STYLE_PROPERTIES_EXCLUDE
from blenderbim.bim.ifc import IfcStore from ...ifc import IfcStore
from pathlib import Path from pathlib import Path
from bpy_extras.image_utils import load_image from bpy_extras.image_utils import load_image
@@ -25,11 +25,11 @@ import blenderbim.tool as tool
import blenderbim.core.drawing as core import blenderbim.core.drawing as core
import blenderbim.bim.module.drawing.annotation as annotation import blenderbim.bim.module.drawing.annotation as annotation
import blenderbim.bim.module.drawing.decoration as decoration import blenderbim.bim.module.drawing.decoration as decoration
from blenderbim.bim.prop import BIMFilterGroup from ...prop import BIMFilterGroup
from blenderbim.bim.module.drawing.data import DrawingsData, DecoratorData, SheetsData, AnnotationData from .data import DrawingsData, DecoratorData, SheetsData, AnnotationData
from blenderbim.bim.module.drawing.data import refresh as refresh_drawing_data from .data import refresh as refresh_drawing_data
from pathlib import Path from pathlib import Path
from blenderbim.bim.prop import Attribute, StrProperty from ...prop import Attribute, StrProperty
from bpy.types import PropertyGroup from bpy.types import PropertyGroup
from bpy.props import ( from bpy.props import (
PointerProperty, PointerProperty,
@@ -23,7 +23,7 @@ import string
import svgwrite import svgwrite
import openpyxl import openpyxl
from blenderbim.bim.module.drawing.svgwriter import SvgWriter from .svgwriter import SvgWriter
from odf.opendocument import load as load_ods from odf.opendocument import load as load_ods
from odf.table import Table, TableRow, TableColumn, TableCell from odf.table import Table, TableRow, TableColumn, TableCell
from odf.text import P from odf.text import P
@@ -32,10 +32,10 @@ import ifcopenshell.util.selector
import blenderbim.tool as tool import blenderbim.tool as tool
import blenderbim.bim.module.drawing.helper as helper import blenderbim.bim.module.drawing.helper as helper
import blenderbim.bim.module.drawing.annotation as annotation import blenderbim.bim.module.drawing.annotation as annotation
from blenderbim.bim.module.drawing.data import DrawingsData from .data import DrawingsData
from blenderbim.bim.module.drawing.data import DecoratorData from .data import DecoratorData
from blenderbim.bim.ifc import IfcStore from ...ifc import IfcStore
from math import pi, ceil, atan, degrees, acos from math import pi, ceil, atan, degrees, acos
from mathutils import geometry, Vector from mathutils import geometry, Vector
@@ -20,7 +20,7 @@ import bpy
import blenderbim.bim.helper import blenderbim.bim.helper
import blenderbim.tool as tool import blenderbim.tool as tool
from bpy.types import Panel from bpy.types import Panel
from blenderbim.bim.module.drawing.data import ( from .data import (
ProductAssignmentsData, ProductAssignmentsData,
SheetsData, SheetsData,
DocumentsData, DocumentsData,
@@ -21,11 +21,11 @@ import os
import bpy import bpy
import blenderbim.core.type import blenderbim.core.type
import blenderbim.tool as tool import blenderbim.tool as tool
from blenderbim.bim.helper import prop_with_search from ...helper import prop_with_search
from bpy.types import WorkSpaceTool from bpy.types import WorkSpaceTool
from blenderbim.bim.module.drawing.data import DecoratorData, AnnotationData from .data import DecoratorData, AnnotationData
from blenderbim.bim.ifc import IfcStore from ...ifc import IfcStore
import blenderbim.bim.handler import blenderbim.bim.handler
@@ -24,7 +24,7 @@ import logging
import tempfile import tempfile
import ifcopenshell import ifcopenshell
import blenderbim.tool as tool import blenderbim.tool as tool
from blenderbim.bim.operator import MultipleFileSelector from ...operator import MultipleFileSelector
class SelectFMIfcFile(MultipleFileSelector): class SelectFMIfcFile(MultipleFileSelector):
@@ -17,8 +17,8 @@
# along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>. # along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>.
import bpy import bpy
from blenderbim.bim.module.fm.data import FMData from .data import FMData
from blenderbim.bim.prop import StrProperty from ...prop import StrProperty
from bpy.types import PropertyGroup from bpy.types import PropertyGroup
from bpy.props import ( from bpy.props import (
PointerProperty, PointerProperty,
@@ -18,8 +18,8 @@
import blenderbim.tool as tool import blenderbim.tool as tool
from bpy.types import Panel from bpy.types import Panel
from blenderbim.bim.ifc import IfcStore from ...ifc import IfcStore
from blenderbim.bim.module.fm.data import FMData from .data import FMData
class BIM_PT_fm(Panel): class BIM_PT_fm(Panel):
@@ -38,7 +38,7 @@ import blenderbim.tool as tool
import blenderbim.bim.handler import blenderbim.bim.handler
from mathutils import Vector, Matrix from mathutils import Vector, Matrix
from time import time from time import time
from blenderbim.bim.ifc import IfcStore from ...ifc import IfcStore
from ifcopenshell.util.shape_builder import ShapeBuilder from ifcopenshell.util.shape_builder import ShapeBuilder
from typing import Any from typing import Any
@@ -18,8 +18,8 @@
import bpy import bpy
import blenderbim.tool as tool import blenderbim.tool as tool
from blenderbim.bim.prop import StrProperty, Attribute from ...prop import StrProperty, Attribute
from blenderbim.bim.module.geometry.data import RepresentationsData, ViewportData from .data import RepresentationsData, ViewportData
from bpy.types import PropertyGroup from bpy.types import PropertyGroup
from bpy.props import ( from bpy.props import (
PointerProperty, PointerProperty,
@@ -20,16 +20,16 @@ import bpy
import blenderbim.bim import blenderbim.bim
import blenderbim.tool as tool import blenderbim.tool as tool
from bpy.types import Panel, Menu, UIList from bpy.types import Panel, Menu, UIList
from blenderbim.bim.ifc import IfcStore from ...ifc import IfcStore
from blenderbim.bim.helper import prop_with_search from ...helper import prop_with_search
from blenderbim.bim.module.geometry.data import ( from .data import (
RepresentationsData, RepresentationsData,
RepresentationItemsData, RepresentationItemsData,
ConnectionsData, ConnectionsData,
PlacementData, PlacementData,
DerivedCoordinatesData, DerivedCoordinatesData,
) )
from blenderbim.bim.module.layer.data import LayersData from ..layer.data import LayersData
def mode_menu(self, context): def mode_menu(self, context):
@@ -26,7 +26,7 @@ from bpy.types import SpaceView3D
from mathutils import Vector, Matrix from mathutils import Vector, Matrix
from gpu_extras.batch import batch_for_shader from gpu_extras.batch import batch_for_shader
from bpy_extras.view3d_utils import location_3d_to_region_2d from bpy_extras.view3d_utils import location_3d_to_region_2d
from blenderbim.bim.module.georeference.data import GeoreferenceData from .data import GeoreferenceData
class GeoreferenceDecorator: class GeoreferenceDecorator:
@@ -20,7 +20,7 @@ import bpy
import blenderbim.tool as tool import blenderbim.tool as tool
import blenderbim.core.georeference as core import blenderbim.core.georeference as core
from blenderbim.bim.module.georeference.decorator import GeoreferenceDecorator from .decorator import GeoreferenceDecorator
class AddGeoreferencing(bpy.types.Operator, tool.Ifc.Operator): class AddGeoreferencing(bpy.types.Operator, tool.Ifc.Operator):
@@ -18,7 +18,7 @@
import bpy import bpy
import ifcopenshell.util.geolocation import ifcopenshell.util.geolocation
from blenderbim.bim.prop import Attribute from ...prop import Attribute
from bpy.types import PropertyGroup from bpy.types import PropertyGroup
from bpy.props import ( from bpy.props import (
PointerProperty, PointerProperty,
@@ -30,8 +30,8 @@ from bpy.props import (
FloatVectorProperty, FloatVectorProperty,
CollectionProperty, CollectionProperty,
) )
from blenderbim.bim.module.georeference.data import GeoreferenceData from .data import GeoreferenceData
from blenderbim.bim.module.georeference.decorator import GeoreferenceDecorator from .decorator import GeoreferenceDecorator
def get_coordinate_operation_class(self, context): def get_coordinate_operation_class(self, context):
@@ -18,8 +18,8 @@
import blenderbim.tool as tool import blenderbim.tool as tool
from bpy.types import Panel from bpy.types import Panel
from blenderbim.bim.helper import draw_attributes, draw_attribute from ...helper import draw_attributes, draw_attribute
from blenderbim.bim.module.georeference.data import GeoreferenceData from .data import GeoreferenceData
class BIM_PT_gis(Panel): class BIM_PT_gis(Panel):
@@ -18,7 +18,7 @@
from bpy.types import PropertyGroup from bpy.types import PropertyGroup
from bpy.props import StringProperty, BoolProperty, EnumProperty, CollectionProperty from bpy.props import StringProperty, BoolProperty, EnumProperty, CollectionProperty
from blenderbim.bim.prop import StrProperty from ...prop import StrProperty
class BIMCityJsonProperties(PropertyGroup): class BIMCityJsonProperties(PropertyGroup):
@@ -21,7 +21,7 @@ import ifcopenshell.util.attribute
import ifcopenshell.api import ifcopenshell.api
import blenderbim.bim.helper import blenderbim.bim.helper
import blenderbim.tool as tool import blenderbim.tool as tool
from blenderbim.bim.ifc import IfcStore from ...ifc import IfcStore
import json import json
@@ -17,8 +17,8 @@
# along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>. # along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>.
import bpy import bpy
from blenderbim.bim.prop import StrProperty, Attribute from ...prop import StrProperty, Attribute
from blenderbim.bim.module.pset.data import refresh as refresh_pset from ..pset.data import refresh as refresh_pset
from bpy.types import PropertyGroup from bpy.types import PropertyGroup
import json import json
from bpy.props import ( from bpy.props import (
@@ -17,8 +17,8 @@
# along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>. # along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>.
from bpy.types import Panel, UIList from bpy.types import Panel, UIList
from blenderbim.bim.ifc import IfcStore from ...ifc import IfcStore
from blenderbim.bim.module.group.data import GroupsData, ObjectGroupsData from .data import GroupsData, ObjectGroupsData
class BIM_PT_groups(Panel): class BIM_PT_groups(Panel):
@@ -3,7 +3,7 @@ import re
import bpy import bpy
import blenderbim.core.ifcgit as core import blenderbim.core.ifcgit as core
import blenderbim.tool as tool import blenderbim.tool as tool
from blenderbim.bim.module.ifcgit.data import IfcGitData, refresh from .data import IfcGitData, refresh
class CreateRepo(bpy.types.Operator): class CreateRepo(bpy.types.Operator):
@@ -7,7 +7,7 @@ from bpy.props import (
IntProperty, IntProperty,
EnumProperty, EnumProperty,
) )
from blenderbim.bim.module.ifcgit.data import IfcGitData from .data import IfcGitData
def git_branches(self, context): def git_branches(self, context):
@@ -1,6 +1,6 @@
import bpy import bpy
import time import time
from blenderbim.bim.module.ifcgit.data import IfcGitData from .data import IfcGitData
class IFCGIT_PT_panel(bpy.types.Panel): class IFCGIT_PT_panel(bpy.types.Panel):
@@ -23,7 +23,7 @@ import ifcopenshell.util.element
import ifcopenshell.util.attribute import ifcopenshell.util.attribute
import blenderbim.bim.helper import blenderbim.bim.helper
import blenderbim.tool as tool import blenderbim.tool as tool
from blenderbim.bim.ifc import IfcStore from ...ifc import IfcStore
class LoadLayers(bpy.types.Operator): class LoadLayers(bpy.types.Operator):
@@ -17,7 +17,7 @@
# along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>. # along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>.
import bpy import bpy
from blenderbim.bim.prop import StrProperty, Attribute from ...prop import StrProperty, Attribute
from bpy.types import PropertyGroup from bpy.types import PropertyGroup
from bpy.props import ( from bpy.props import (
PointerProperty, PointerProperty,
@@ -17,8 +17,8 @@
# along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>. # along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>.
from bpy.types import Panel, UIList, Mesh from bpy.types import Panel, UIList, Mesh
from blenderbim.bim.ifc import IfcStore from ...ifc import IfcStore
from blenderbim.bim.module.layer.data import LayersData from .data import LayersData
class BIM_PT_layers(Panel): class BIM_PT_layers(Panel):
@@ -21,7 +21,7 @@ import ifcopenshell.api
import blenderbim.tool as tool import blenderbim.tool as tool
import blenderbim.core.library as core import blenderbim.core.library as core
import blenderbim.bim.handler import blenderbim.bim.handler
from blenderbim.bim.ifc import IfcStore from ...ifc import IfcStore
class AddLibrary(bpy.types.Operator, tool.Ifc.Operator): class AddLibrary(bpy.types.Operator, tool.Ifc.Operator):
@@ -17,8 +17,8 @@
# along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>. # along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>.
import bpy import bpy
from blenderbim.bim.prop import StrProperty, Attribute from ...prop import StrProperty, Attribute
from blenderbim.bim.module.library.data import LibrariesData from .data import LibrariesData
from bpy.types import PropertyGroup from bpy.types import PropertyGroup
from bpy.props import ( from bpy.props import (
PointerProperty, PointerProperty,
@@ -19,7 +19,7 @@
import blenderbim.bim.helper import blenderbim.bim.helper
import blenderbim.tool as tool import blenderbim.tool as tool
from bpy.types import Panel, UIList from bpy.types import Panel, UIList
from blenderbim.bim.module.library.data import LibrariesData, LibraryReferencesData from .data import LibrariesData, LibraryReferencesData
class BIM_PT_libraries(Panel): class BIM_PT_libraries(Panel):
@@ -26,7 +26,7 @@ from math import radians
from mathutils import Vector, Matrix from mathutils import Vector, Matrix
from gpu_extras.batch import batch_for_shader from gpu_extras.batch import batch_for_shader
from bpy_extras.view3d_utils import location_3d_to_region_2d from bpy_extras.view3d_utils import location_3d_to_region_2d
from blenderbim.bim.module.light.data import SolarData from .data import SolarData
sun_position = tool.Blender.get_sun_position_addon() sun_position = tool.Blender.get_sun_position_addon()
@@ -27,7 +27,7 @@ import ifcopenshell.geom
import blenderbim.tool as tool import blenderbim.tool as tool
from pathlib import Path from pathlib import Path
from typing import Union from typing import Union
from blenderbim.bim.module.light.data import SolarData from .data import SolarData
class ExportOBJ(bpy.types.Operator): class ExportOBJ(bpy.types.Operator):
@@ -25,8 +25,8 @@ from math import radians, pi
from mathutils import Euler, Vector, Matrix, Quaternion from mathutils import Euler, Vector, Matrix, Quaternion
from bpy.props import IntProperty, StringProperty, EnumProperty, FloatProperty, FloatVectorProperty, BoolProperty from bpy.props import IntProperty, StringProperty, EnumProperty, FloatProperty, FloatVectorProperty, BoolProperty
from bpy.types import PropertyGroup from bpy.types import PropertyGroup
from blenderbim.bim.module.light.data import SolarData from .data import SolarData
from blenderbim.bim.module.light.decorator import SolarDecorator from .decorator import SolarDecorator
sun_position = tool.Blender.get_sun_position_addon() sun_position = tool.Blender.get_sun_position_addon()
@@ -18,7 +18,7 @@
import bpy import bpy
import blenderbim.tool as tool import blenderbim.tool as tool
from blenderbim.bim.module.light.data import SolarData from .data import SolarData
sun_position = tool.Blender.get_sun_position_addon() sun_position = tool.Blender.get_sun_position_addon()
@@ -23,7 +23,7 @@ import ifcopenshell.util.element
import ifcopenshell.util.doc import ifcopenshell.util.doc
import ifcopenshell.util.schema import ifcopenshell.util.schema
import blenderbim.tool as tool import blenderbim.tool as tool
from blenderbim.bim.module.drawing.helper import format_distance from ..drawing.helper import format_distance
def refresh(): def refresh():
@@ -27,8 +27,8 @@ import blenderbim.tool as tool
import blenderbim.core.style import blenderbim.core.style
import blenderbim.core.material as core import blenderbim.core.material as core
import blenderbim.bim.module.model.profile as model_profile import blenderbim.bim.module.model.profile as model_profile
from blenderbim.bim.module.material.prop import purge as material_prop_purge from .prop import purge as material_prop_purge
from blenderbim.bim.ifc import IfcStore from ...ifc import IfcStore
class LoadMaterials(bpy.types.Operator, tool.Ifc.Operator): class LoadMaterials(bpy.types.Operator, tool.Ifc.Operator):
@@ -19,9 +19,9 @@
import bpy import bpy
from ifcopenshell.util.doc import get_entity_doc from ifcopenshell.util.doc import get_entity_doc
import blenderbim.tool as tool import blenderbim.tool as tool
from blenderbim.bim.module.material.data import MaterialsData, ObjectMaterialData from .data import MaterialsData, ObjectMaterialData
from blenderbim.bim.ifc import IfcStore from ...ifc import IfcStore
from blenderbim.bim.prop import StrProperty, Attribute from ...prop import StrProperty, Attribute
from bpy.types import PropertyGroup from bpy.types import PropertyGroup
from bpy.props import ( from bpy.props import (
PointerProperty, PointerProperty,
@@ -20,11 +20,11 @@ import blenderbim.bim.helper
import blenderbim.tool as tool import blenderbim.tool as tool
import bpy import bpy
from bpy.types import Panel, UIList from bpy.types import Panel, UIList
from blenderbim.bim.ifc import IfcStore from ...ifc import IfcStore
from blenderbim.bim.helper import draw_attributes from ...helper import draw_attributes
from blenderbim.bim.helper import prop_with_search from ...helper import prop_with_search
from blenderbim.bim.module.material.data import MaterialsData, ObjectMaterialData from .data import MaterialsData, ObjectMaterialData
from blenderbim.bim.module.drawing.helper import format_distance from ..drawing.helper import format_distance
class BIM_PT_materials(Panel): class BIM_PT_materials(Panel):
@@ -24,7 +24,7 @@ import blenderbim.tool as tool
import blenderbim.core.misc as core import blenderbim.core.misc as core
import blenderbim.core.geometry as core_geometry import blenderbim.core.geometry as core_geometry
import blenderbim.core.root import blenderbim.core.root
from blenderbim.bim.ifc import IfcStore from ...ifc import IfcStore
from mathutils import Vector, Matrix, Euler from mathutils import Vector, Matrix, Euler
@@ -17,7 +17,7 @@
# along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>. # along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>.
import bpy import bpy
from blenderbim.bim.prop import StrProperty, Attribute from ...prop import StrProperty, Attribute
from bpy.types import PropertyGroup from bpy.types import PropertyGroup
from bpy.props import ( from bpy.props import (
PointerProperty, PointerProperty,
@@ -30,7 +30,7 @@ import blenderbim.tool as tool
import blenderbim.core.geometry import blenderbim.core.geometry
import blenderbim.core.geometry as core import blenderbim.core.geometry as core
import blenderbim.core.root import blenderbim.core.root
from blenderbim.bim.module.model.window import create_bm_window, create_bm_box from .window import create_bm_window, create_bm_box
from mathutils import Vector, Matrix from mathutils import Vector, Matrix
@@ -19,8 +19,8 @@
import bpy import bpy
import ifcopenshell import ifcopenshell
import ifcopenshell.api import ifcopenshell.api
from blenderbim.bim.module.model import root, product, wall, slab, profile, opening, task from . import root, product, wall, slab, profile, opening, task
from blenderbim.bim.ifc import IfcStore from ...ifc import IfcStore
from bpy.app.handlers import persistent from bpy.app.handlers import persistent
@@ -39,8 +39,8 @@ from math import pi, degrees, radians, sin, cos, asin, tan
from copy import copy from copy import copy
from mathutils import Vector, Matrix from mathutils import Vector, Matrix
from ifcopenshell.util.shape_builder import ShapeBuilder from ifcopenshell.util.shape_builder import ShapeBuilder
from blenderbim.bim.module.model.profile import DumbProfileJoiner from .profile import DumbProfileJoiner
from blenderbim.tool.cad import VTX_PRECISION from ....tool.cad import VTX_PRECISION
V = lambda *x: Vector([float(i) for i in x]) V = lambda *x: Vector([float(i) for i in x])
@@ -36,7 +36,7 @@ import blenderbim.tool as tool
import blenderbim.core.geometry import blenderbim.core.geometry
import blenderbim.bim.import_ifc as import_ifc import blenderbim.bim.import_ifc as import_ifc
import blenderbim.bim.handler import blenderbim.bim.handler
from blenderbim.bim.ifc import IfcStore from ...ifc import IfcStore
from math import pi, radians from math import pi, radians
from mathutils import Vector, Matrix from mathutils import Vector, Matrix
from bpy.types import Operator from bpy.types import Operator

Some files were not shown because too many files have changed in this diff Show More