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.spatial
import blenderbim.core.style
from blenderbim.bim.ifc import IfcStore
from .ifc import IfcStore
from mathutils import Vector
from typing import Union
from logging import Logger
+4 -4
View File
@@ -27,10 +27,10 @@ import blenderbim.bim
import blenderbim.tool as tool
import blenderbim.core.owner as core_owner
from bpy.app.handlers import persistent
from blenderbim.bim.ifc import IfcStore
from blenderbim.bim.module.owner.prop import get_user_person, get_user_organisation
from blenderbim.bim.module.model.data import AuthoringData
from blenderbim.bim.module.model.workspace import LIST_OF_TOOLS, TOOLS_TO_CLASSES_MAP
from .ifc import IfcStore
from .module.owner.prop import get_user_person, get_user_organisation
from .module.model.data import AuthoringData
from .module.model.workspace import LIST_OF_TOOLS, TOOLS_TO_CLASSES_MAP
from mathutils import Vector
from math import cos, degrees
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 Vector
import blenderbim.tool as tool
from blenderbim.bim.ifc import IfcStore
from .ifc import IfcStore
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.tool as tool
from pathlib import Path
from blenderbim.tool.brick import BrickStore
from ..tool.brick import BrickStore
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 blenderbim.tool as tool
from itertools import chain, accumulate
from blenderbim.bim.ifc import IfcStore, IFC_CONNECTED_TYPE
from blenderbim.tool.loader import OBJECT_DATA_TYPE
from .ifc import IfcStore, IFC_CONNECTED_TYPE
from ..tool.loader import OBJECT_DATA_TYPE
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.spatial
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):
@@ -17,8 +17,8 @@
# along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>.
import bpy
from blenderbim.bim.prop import StrProperty, Attribute
from blenderbim.bim.module.spatial.data import SpatialData
from ...prop import StrProperty, Attribute
from ..spatial.data import SpatialData
from bpy.types import PropertyGroup
from bpy.props import (
PointerProperty,
@@ -17,9 +17,9 @@
# along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>.
from bpy.types import Panel
from blenderbim.bim.module.aggregate.data import AggregateData
from blenderbim.bim.module.group.data import GroupsData, ObjectGroupsData
from blenderbim.bim.ifc import IfcStore
from .data import AggregateData
from ..group.data import GroupsData, ObjectGroupsData
from ...ifc import IfcStore
import blenderbim.tool as tool
@@ -25,7 +25,7 @@ import blenderbim.bim.helper
import blenderbim.bim.handler
import blenderbim.tool as tool
import blenderbim.core.attribute as core
from blenderbim.bim.ifc import IfcStore
from ...ifc import IfcStore
class EnableEditingAttributes(bpy.types.Operator):
@@ -17,8 +17,8 @@
# along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>.
import bpy
from blenderbim.bim.ifc import IfcStore
from blenderbim.bim.prop import StrProperty, Attribute
from ...ifc import IfcStore
from ...prop import StrProperty, Attribute
from bpy.types import PropertyGroup
from bpy.props import (
PointerProperty,
@@ -18,8 +18,8 @@
import blenderbim.bim.helper
from bpy.types import Panel
from blenderbim.bim.ifc import IfcStore
from blenderbim.bim.module.attribute.data import AttributesData
from ...ifc import IfcStore
from .data import AttributesData
def draw_ui(context, layout, attributes):
@@ -30,7 +30,7 @@ import ifcopenshell.util.unit
import blenderbim.bim.module.bcf.prop as bcf_prop
from . import bcfstore
from pathlib import Path
from blenderbim.bim.ifc import IfcStore
from ...ifc import IfcStore
from math import radians, degrees, atan, tan, cos, sin
from mathutils import Vector, Matrix, Euler, geometry
from xsdata.models.datatype import XmlDateTime
@@ -18,7 +18,7 @@
import bpy
from . import bcfstore
from blenderbim.bim.prop import StrProperty
from ...prop import StrProperty
from bpy.types import PropertyGroup
from bpy.props import (
PointerProperty,
@@ -35,9 +35,9 @@ import blenderbim.tool as tool
import blenderbim.bim.import_ifc as import_ifc
from math import pi, inf, degrees, acos, radians
from mathutils import Vector, Matrix
from blenderbim.bim.ifc import IfcStore
from blenderbim.bim.module.model.decorator import ProfileDecorator
from blenderbim.bim.module.boundary.decorator import BoundaryDecorator
from ...ifc import IfcStore
from ..model.decorator import ProfileDecorator
from .decorator import BoundaryDecorator
import blenderbim.core
import blenderbim.core.geometry
@@ -18,7 +18,7 @@
import bpy
from bpy.types import PropertyGroup
from blenderbim.bim.prop import ObjProperty
from ...prop import ObjProperty
from bpy.props import (
PointerProperty,
StringProperty,
@@ -19,9 +19,9 @@
import bpy
import blenderbim.bim.helper
from bpy.types import Panel, UIList
from blenderbim.bim.ifc import IfcStore
from ...ifc import IfcStore
import blenderbim.tool as tool
from blenderbim.bim.module.boundary.data import SpaceBoundariesData
from .data import SpaceBoundariesData
class BIM_PT_SceneBoundaries(Panel):
@@ -18,7 +18,7 @@
import bpy
import blenderbim.tool as tool
from blenderbim.tool.brick import BrickStore
from ....tool.brick import BrickStore
try:
from rdflib import URIRef, BNode
@@ -22,8 +22,8 @@ import ifcopenshell.api
import blenderbim.tool as tool
import blenderbim.core.brick as core
import blenderbim.bim.handler
from blenderbim.bim.ifc import IfcStore
from blenderbim.tool.brick import BrickStore
from ...ifc import IfcStore
from ....tool.brick import BrickStore
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/>.
import bpy
from blenderbim.bim.module.brick.data import BrickschemaData, BrickschemaReferencesData
from blenderbim.bim.prop import StrProperty, Attribute
from .data import BrickschemaData, BrickschemaReferencesData
from ...prop import StrProperty, Attribute
from bpy.types import PropertyGroup
from bpy.props import (
PointerProperty,
@@ -32,7 +32,7 @@ from bpy.props import (
)
import blenderbim.core.brick as core
import blenderbim.tool.brick as tool
from blenderbim.tool.brick import BrickStore
from ....tool.brick import BrickStore
def update_active_brick_index(self, context):
BrickschemaData.is_loaded = False
@@ -18,9 +18,9 @@
import blenderbim.tool as tool
from bpy.types import Panel, UIList
from blenderbim.bim.helper import prop_with_search
from blenderbim.bim.module.brick.data import BrickschemaData, BrickschemaReferencesData
from blenderbim.tool.brick import BrickStore
from ...helper import prop_with_search
from .data import BrickschemaData, BrickschemaReferencesData
from ....tool.brick import BrickStore
class BIM_PT_brickschema(Panel):
@@ -19,7 +19,7 @@
import bpy
import bsdd
import blenderbim.tool as tool
from blenderbim.core import bsdd as core
from ....core import bsdd as core
class LoadBSDDDomains(bpy.types.Operator):
@@ -18,7 +18,7 @@
import bpy
from bpy.types import PropertyGroup
from blenderbim.bim.prop import Attribute, StrProperty
from ...prop import Attribute, StrProperty
from bpy.props import (
PointerProperty,
StringProperty,
@@ -18,7 +18,7 @@
import blenderbim.tool as tool
from bpy.types import Panel, UIList
from blenderbim.bim.ifc import IfcStore
from ...ifc import IfcStore
class BIM_PT_bsdd(Panel):
@@ -17,7 +17,7 @@
# along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>.
import bpy
from blenderbim.bim.module.model.data import AuthoringData
from ..model.data import AuthoringData
from bpy.types import PropertyGroup
from math import pi
@@ -22,7 +22,7 @@ import blenderbim.tool as tool
import blenderbim.bim.module.type.prop as type_prop
import ifcopenshell.util.unit
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):
@@ -26,8 +26,8 @@ import ifcopenshell
import blenderbim.tool as tool
from math import radians
from mathutils import Matrix, Vector
from blenderbim.bim.ifc import IfcStore
from blenderbim.bim.module.clash.decorator import ClashDecorator
from ...ifc import IfcStore
from .decorator import ClashDecorator
class ExportClashSets(bpy.types.Operator):
@@ -17,7 +17,7 @@
# along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>.
import bpy
from blenderbim.bim.prop import StrProperty, Attribute, BIMFilterGroup
from ...prop import StrProperty, Attribute, BIMFilterGroup
from bpy.types import PropertyGroup
from bpy.props import (
PointerProperty,
@@ -19,7 +19,7 @@
import bpy
import blenderbim.bim.helper
from bpy.types import Panel
from blenderbim.bim.module.clash.data import ClashData
from .data import ClashData
class BIM_PT_ifcclash(Panel):
@@ -21,7 +21,7 @@ import ifcopenshell
import ifcopenshell.util.date
import ifcopenshell.util.classification
import blenderbim.tool as tool
from blenderbim.bim.ifc import IfcStore
from ...ifc import IfcStore
def refresh():
@@ -24,7 +24,7 @@ import ifcopenshell.util.classification
import ifcopenshell.util.element
import blenderbim.tool as tool
import blenderbim.bim.helper
from blenderbim.bim.ifc import IfcStore
from ...ifc import IfcStore
class LoadClassificationLibrary(bpy.types.Operator, tool.Ifc.Operator):
@@ -18,9 +18,9 @@
import bpy
import blenderbim.bim.helper
from blenderbim.bim.ifc import IfcStore
from blenderbim.bim.prop import StrProperty, Attribute
from blenderbim.bim.module.classification.data import ClassificationsData, ClassificationReferencesData
from ...ifc import IfcStore
from ...prop import StrProperty, Attribute
from .data import ClassificationsData, ClassificationReferencesData
from bpy.types import PropertyGroup
from bpy.props import (
PointerProperty,
@@ -20,8 +20,8 @@ import blenderbim.bim.helper
import blenderbim.tool as tool
import blenderbim.bim.module.classification.prop as classification_prop
from bpy.types import Panel, UIList
from blenderbim.bim.ifc import IfcStore
from blenderbim.bim.module.classification.data import (
from ...ifc import IfcStore
from .data import (
ClassificationsData,
ClassificationReferencesData,
MaterialClassificationsData,
@@ -22,7 +22,7 @@ import ifcopenshell.api
import ifcopenshell.util.attribute
import blenderbim.bim.helper
import blenderbim.tool as tool
from blenderbim.bim.ifc import IfcStore
from ...ifc import IfcStore
class LoadObjectives(bpy.types.Operator):
@@ -19,7 +19,7 @@
import bpy
from ifcopenshell.util.doc import get_entity_doc
import blenderbim.tool as tool
from blenderbim.bim.prop import Attribute
from ...prop import Attribute
from bpy.types import PropertyGroup
from bpy.props import (
PointerProperty,
@@ -17,9 +17,9 @@
# along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>.
from bpy.types import Panel, UIList
from blenderbim.bim.ifc import IfcStore
from blenderbim.bim.helper import draw_attributes
from blenderbim.bim.module.constraint.data import ConstraintsData, ObjectConstraintsData
from ...ifc import IfcStore
from ...helper import draw_attributes
from .data import ConstraintsData, ObjectConstraintsData
class BIM_PT_constraints(Panel):
@@ -21,7 +21,7 @@ import blenderbim.tool as tool
import blenderbim.core.context as core
import blenderbim.bim.module.context.data
import blenderbim.bim.handler
from blenderbim.bim.ifc import IfcStore
from ...ifc import IfcStore
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/>.
import bpy
from blenderbim.bim.prop import StrProperty, Attribute
from blenderbim.bim.module.context.data import ContextData
from ...prop import StrProperty, Attribute
from .data import ContextData
from bpy.types import PropertyGroup
from bpy.props import (
PointerProperty,
@@ -19,7 +19,7 @@
import bpy
import blenderbim.bim.helper
import blenderbim.tool as tool
from blenderbim.bim.module.context.data import ContextData
from .data import ContextData
class BIM_PT_context(bpy.types.Panel):
@@ -19,10 +19,10 @@
import bpy
import ifcopenshell.api
import blenderbim.tool as tool
from blenderbim.bim.ifc import IfcStore
from blenderbim.bim.module.classification.data import CostClassificationsData
from blenderbim.bim.module.cost.data import CostSchedulesData, CostItemRatesData, CostItemQuantitiesData
from blenderbim.bim.prop import StrProperty, Attribute
from ...ifc import IfcStore
from ..classification.data import CostClassificationsData
from .data import CostSchedulesData, CostItemRatesData, CostItemQuantitiesData
from ...prop import StrProperty, Attribute
from bpy.types import PropertyGroup
from bpy.props import (
PointerProperty,
@@ -19,8 +19,8 @@
import blenderbim.bim.helper
import blenderbim.bim.module.cost.prop as CostProp
from bpy.types import Panel, UIList
from blenderbim.bim.ifc import IfcStore
from blenderbim.bim.module.cost.data import CostSchedulesData
from ...ifc import IfcStore
from .data import CostSchedulesData
from typing import Any
@@ -17,7 +17,7 @@
# along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>.
import bpy
from blenderbim.bim.prop import StrProperty, Attribute
from ...prop import StrProperty, Attribute
#from blenderbim.bim.module.spatial.data import SpatialData
from bpy.types import PropertyGroup
from bpy.props import (
@@ -21,10 +21,10 @@ import os
import bpy
import ifcopenshell
import blenderbim.tool as tool
from blenderbim.bim.helper import prop_with_search
from blenderbim.bim.module.model.data import AuthoringData
from ...helper import prop_with_search
from ..model.data import AuthoringData
from bpy.types import WorkSpaceTool
from blenderbim.bim.ifc import IfcStore
from ...ifc import IfcStore
import blenderbim.bim.handler
@@ -21,7 +21,7 @@ import json
import ifcopenshell
import ifcopenshell.util.element
from math import degrees, atan2
from blenderbim.bim.ifc import IfcStore
from ...ifc import IfcStore
from .api import Api
@@ -26,8 +26,8 @@ import ifcopenshell
import ifcopenshell.util.selector
import blenderbim.tool as tool
import blenderbim.bim.module.drawing.scheduler as scheduler
from blenderbim.bim.ifc import IfcStore
from blenderbim.bim.handler import refresh_ui_data
from ...ifc import IfcStore
from ...handler import refresh_ui_data
class AddCsvAttribute(bpy.types.Operator):
@@ -17,7 +17,7 @@
# along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>.
import bpy
from blenderbim.bim.prop import StrProperty, BIMFilterGroup
from ...prop import StrProperty, BIMFilterGroup
from bpy.types import PropertyGroup
from bpy.props import (
PointerProperty,
@@ -18,8 +18,8 @@
import blenderbim.bim.helper
from bpy.types import Panel
from blenderbim.bim.ifc import IfcStore
from blenderbim.bim.module.search.data import SearchData
from ...ifc import IfcStore
from ..search.data import SearchData
class BIM_PT_ifccsv(Panel):
@@ -23,6 +23,7 @@ import time
import random
import logging
import platform
import importlib
import subprocess
import ifcopenshell
import ifcopenshell.api
@@ -35,9 +36,11 @@ import blenderbim.core.debug as core
import blenderbim.bim.handler
import blenderbim.bim.import_ifc as import_ifc
from pathlib import Path
from blenderbim import get_debug_info, format_debug_info
from blenderbim.bim.ifc import IfcStore
from ...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):
bl_idname = "bim.copy_debug_information"
@@ -16,7 +16,7 @@
# 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/>.
from blenderbim.bim.prop import StrProperty, Attribute
from ...prop import StrProperty, Attribute
from bpy.types import PropertyGroup
from bpy.props import (
PointerProperty,
@@ -27,7 +27,7 @@
# panels, buttons, labels, and input fields are laid out.
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
# the "Developer Extras" option in Blender, then you can actually right click on
@@ -22,7 +22,7 @@ import logging
import ifcopenshell
import blenderbim.bim.handler
import blenderbim.tool as tool
from blenderbim.bim.ifc import IfcStore
from ...ifc import IfcStore
class SelectDiffJsonFile(bpy.types.Operator):
@@ -17,8 +17,8 @@
# along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>.
import bpy
from blenderbim.bim.prop import StrProperty, BIMFilterGroup
from blenderbim.bim.module.diff.data import DiffData
from ...prop import StrProperty, BIMFilterGroup
from .data import DiffData
from bpy.types import PropertyGroup
from bpy.props import (
PointerProperty,
@@ -17,8 +17,8 @@
# along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>.
from bpy.types import Panel
from blenderbim.bim.ifc import IfcStore
from blenderbim.bim.module.diff.data import DiffData
from ...ifc import IfcStore
from .data import DiffData
import blenderbim.bim.helper
import blenderbim.tool as tool
@@ -22,7 +22,7 @@ import ifcopenshell.api
import ifcopenshell.util.attribute
import blenderbim.tool as tool
import blenderbim.core.document as core
from blenderbim.bim.ifc import IfcStore
from ...ifc import IfcStore
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/>.
import bpy
from blenderbim.bim.prop import StrProperty, Attribute
from ...prop import StrProperty, Attribute
from bpy.types import PropertyGroup
from bpy.props import (
PointerProperty,
@@ -17,9 +17,9 @@
# along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>.
from bpy.types import Panel, UIList
from blenderbim.bim.ifc import IfcStore
from blenderbim.bim.helper import draw_attributes
from blenderbim.bim.module.document.data import DocumentData, ObjectDocumentData
from ...ifc import IfcStore
from ...helper import draw_attributes
from .data import DocumentData, ObjectDocumentData
class BIM_PT_documents(Panel):
@@ -32,9 +32,9 @@ from bpy.types import SpaceView3D
from mathutils import Vector, Matrix
from bpy_extras.view3d_utils import location_3d_to_region_2d
from gpu_extras.batch import batch_for_shader
from blenderbim.bim.module.drawing.data import DecoratorData, DrawingsData
from blenderbim.bim.module.drawing.shaders import add_verts_sequence, add_offsets
from blenderbim.bim.module.drawing.helper import format_distance
from .data import DecoratorData, DrawingsData
from .shaders import add_verts_sequence, add_offsets
from .helper import format_distance
from timeit import default_timer as timer
from functools import lru_cache
from typing import Optional, Iterator, Type, Union
@@ -23,7 +23,7 @@ from bpy import types
from mathutils import Vector
from mathutils import geometry
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
@@ -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.helper as helper
import blenderbim.bim.export_ifc
from blenderbim.bim.module.drawing.decoration import CutDecorator
from blenderbim.bim.module.drawing.data import DecoratorData, DrawingsData
from .decoration import CutDecorator
from .data import DecoratorData, DrawingsData
from typing import NamedTuple, List, Union, Optional, Literal
from lxml import etree
from mathutils import Vector, Color, Matrix
from timeit import default_timer as timer
from blenderbim.bim.module.drawing.prop import RasterStyleProperty, RASTER_STYLE_PROPERTIES_EXCLUDE
from blenderbim.bim.ifc import IfcStore
from .prop import RasterStyleProperty, RASTER_STYLE_PROPERTIES_EXCLUDE
from ...ifc import IfcStore
from pathlib import Path
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.bim.module.drawing.annotation as annotation
import blenderbim.bim.module.drawing.decoration as decoration
from blenderbim.bim.prop import BIMFilterGroup
from blenderbim.bim.module.drawing.data import DrawingsData, DecoratorData, SheetsData, AnnotationData
from blenderbim.bim.module.drawing.data import refresh as refresh_drawing_data
from ...prop import BIMFilterGroup
from .data import DrawingsData, DecoratorData, SheetsData, AnnotationData
from .data import refresh as refresh_drawing_data
from pathlib import Path
from blenderbim.bim.prop import Attribute, StrProperty
from ...prop import Attribute, StrProperty
from bpy.types import PropertyGroup
from bpy.props import (
PointerProperty,
@@ -23,7 +23,7 @@ import string
import svgwrite
import openpyxl
from blenderbim.bim.module.drawing.svgwriter import SvgWriter
from .svgwriter import SvgWriter
from odf.opendocument import load as load_ods
from odf.table import Table, TableRow, TableColumn, TableCell
from odf.text import P
@@ -32,10 +32,10 @@ import ifcopenshell.util.selector
import blenderbim.tool as tool
import blenderbim.bim.module.drawing.helper as helper
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 blenderbim.bim.ifc import IfcStore
from .data import DecoratorData
from ...ifc import IfcStore
from math import pi, ceil, atan, degrees, acos
from mathutils import geometry, Vector
@@ -20,7 +20,7 @@ import bpy
import blenderbim.bim.helper
import blenderbim.tool as tool
from bpy.types import Panel
from blenderbim.bim.module.drawing.data import (
from .data import (
ProductAssignmentsData,
SheetsData,
DocumentsData,
@@ -21,11 +21,11 @@ import os
import bpy
import blenderbim.core.type
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 blenderbim.bim.module.drawing.data import DecoratorData, AnnotationData
from blenderbim.bim.ifc import IfcStore
from .data import DecoratorData, AnnotationData
from ...ifc import IfcStore
import blenderbim.bim.handler
@@ -24,7 +24,7 @@ import logging
import tempfile
import ifcopenshell
import blenderbim.tool as tool
from blenderbim.bim.operator import MultipleFileSelector
from ...operator import MultipleFileSelector
class SelectFMIfcFile(MultipleFileSelector):
@@ -17,8 +17,8 @@
# along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>.
import bpy
from blenderbim.bim.module.fm.data import FMData
from blenderbim.bim.prop import StrProperty
from .data import FMData
from ...prop import StrProperty
from bpy.types import PropertyGroup
from bpy.props import (
PointerProperty,
@@ -18,8 +18,8 @@
import blenderbim.tool as tool
from bpy.types import Panel
from blenderbim.bim.ifc import IfcStore
from blenderbim.bim.module.fm.data import FMData
from ...ifc import IfcStore
from .data import FMData
class BIM_PT_fm(Panel):
@@ -38,7 +38,7 @@ import blenderbim.tool as tool
import blenderbim.bim.handler
from mathutils import Vector, Matrix
from time import time
from blenderbim.bim.ifc import IfcStore
from ...ifc import IfcStore
from ifcopenshell.util.shape_builder import ShapeBuilder
from typing import Any
@@ -18,8 +18,8 @@
import bpy
import blenderbim.tool as tool
from blenderbim.bim.prop import StrProperty, Attribute
from blenderbim.bim.module.geometry.data import RepresentationsData, ViewportData
from ...prop import StrProperty, Attribute
from .data import RepresentationsData, ViewportData
from bpy.types import PropertyGroup
from bpy.props import (
PointerProperty,
@@ -20,16 +20,16 @@ import bpy
import blenderbim.bim
import blenderbim.tool as tool
from bpy.types import Panel, Menu, UIList
from blenderbim.bim.ifc import IfcStore
from blenderbim.bim.helper import prop_with_search
from blenderbim.bim.module.geometry.data import (
from ...ifc import IfcStore
from ...helper import prop_with_search
from .data import (
RepresentationsData,
RepresentationItemsData,
ConnectionsData,
PlacementData,
DerivedCoordinatesData,
)
from blenderbim.bim.module.layer.data import LayersData
from ..layer.data import LayersData
def mode_menu(self, context):
@@ -26,7 +26,7 @@ from bpy.types import SpaceView3D
from mathutils import Vector, Matrix
from gpu_extras.batch import batch_for_shader
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:
@@ -20,7 +20,7 @@ import bpy
import blenderbim.tool as tool
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):
@@ -18,7 +18,7 @@
import bpy
import ifcopenshell.util.geolocation
from blenderbim.bim.prop import Attribute
from ...prop import Attribute
from bpy.types import PropertyGroup
from bpy.props import (
PointerProperty,
@@ -30,8 +30,8 @@ from bpy.props import (
FloatVectorProperty,
CollectionProperty,
)
from blenderbim.bim.module.georeference.data import GeoreferenceData
from blenderbim.bim.module.georeference.decorator import GeoreferenceDecorator
from .data import GeoreferenceData
from .decorator import GeoreferenceDecorator
def get_coordinate_operation_class(self, context):
@@ -18,8 +18,8 @@
import blenderbim.tool as tool
from bpy.types import Panel
from blenderbim.bim.helper import draw_attributes, draw_attribute
from blenderbim.bim.module.georeference.data import GeoreferenceData
from ...helper import draw_attributes, draw_attribute
from .data import GeoreferenceData
class BIM_PT_gis(Panel):
@@ -18,7 +18,7 @@
from bpy.types import PropertyGroup
from bpy.props import StringProperty, BoolProperty, EnumProperty, CollectionProperty
from blenderbim.bim.prop import StrProperty
from ...prop import StrProperty
class BIMCityJsonProperties(PropertyGroup):
@@ -21,7 +21,7 @@ import ifcopenshell.util.attribute
import ifcopenshell.api
import blenderbim.bim.helper
import blenderbim.tool as tool
from blenderbim.bim.ifc import IfcStore
from ...ifc import IfcStore
import json
@@ -17,8 +17,8 @@
# along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>.
import bpy
from blenderbim.bim.prop import StrProperty, Attribute
from blenderbim.bim.module.pset.data import refresh as refresh_pset
from ...prop import StrProperty, Attribute
from ..pset.data import refresh as refresh_pset
from bpy.types import PropertyGroup
import json
from bpy.props import (
@@ -17,8 +17,8 @@
# along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>.
from bpy.types import Panel, UIList
from blenderbim.bim.ifc import IfcStore
from blenderbim.bim.module.group.data import GroupsData, ObjectGroupsData
from ...ifc import IfcStore
from .data import GroupsData, ObjectGroupsData
class BIM_PT_groups(Panel):
@@ -3,7 +3,7 @@ import re
import bpy
import blenderbim.core.ifcgit as core
import blenderbim.tool as tool
from blenderbim.bim.module.ifcgit.data import IfcGitData, refresh
from .data import IfcGitData, refresh
class CreateRepo(bpy.types.Operator):
@@ -7,7 +7,7 @@ from bpy.props import (
IntProperty,
EnumProperty,
)
from blenderbim.bim.module.ifcgit.data import IfcGitData
from .data import IfcGitData
def git_branches(self, context):
@@ -1,6 +1,6 @@
import bpy
import time
from blenderbim.bim.module.ifcgit.data import IfcGitData
from .data import IfcGitData
class IFCGIT_PT_panel(bpy.types.Panel):
@@ -23,7 +23,7 @@ import ifcopenshell.util.element
import ifcopenshell.util.attribute
import blenderbim.bim.helper
import blenderbim.tool as tool
from blenderbim.bim.ifc import IfcStore
from ...ifc import IfcStore
class LoadLayers(bpy.types.Operator):
@@ -17,7 +17,7 @@
# along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>.
import bpy
from blenderbim.bim.prop import StrProperty, Attribute
from ...prop import StrProperty, Attribute
from bpy.types import PropertyGroup
from bpy.props import (
PointerProperty,
@@ -17,8 +17,8 @@
# along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>.
from bpy.types import Panel, UIList, Mesh
from blenderbim.bim.ifc import IfcStore
from blenderbim.bim.module.layer.data import LayersData
from ...ifc import IfcStore
from .data import LayersData
class BIM_PT_layers(Panel):
@@ -21,7 +21,7 @@ import ifcopenshell.api
import blenderbim.tool as tool
import blenderbim.core.library as core
import blenderbim.bim.handler
from blenderbim.bim.ifc import IfcStore
from ...ifc import IfcStore
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/>.
import bpy
from blenderbim.bim.prop import StrProperty, Attribute
from blenderbim.bim.module.library.data import LibrariesData
from ...prop import StrProperty, Attribute
from .data import LibrariesData
from bpy.types import PropertyGroup
from bpy.props import (
PointerProperty,
@@ -19,7 +19,7 @@
import blenderbim.bim.helper
import blenderbim.tool as tool
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):
@@ -26,7 +26,7 @@ from math import radians
from mathutils import Vector, Matrix
from gpu_extras.batch import batch_for_shader
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()
@@ -27,7 +27,7 @@ import ifcopenshell.geom
import blenderbim.tool as tool
from pathlib import Path
from typing import Union
from blenderbim.bim.module.light.data import SolarData
from .data import SolarData
class ExportOBJ(bpy.types.Operator):
@@ -25,8 +25,8 @@ from math import radians, pi
from mathutils import Euler, Vector, Matrix, Quaternion
from bpy.props import IntProperty, StringProperty, EnumProperty, FloatProperty, FloatVectorProperty, BoolProperty
from bpy.types import PropertyGroup
from blenderbim.bim.module.light.data import SolarData
from blenderbim.bim.module.light.decorator import SolarDecorator
from .data import SolarData
from .decorator import SolarDecorator
sun_position = tool.Blender.get_sun_position_addon()
@@ -18,7 +18,7 @@
import bpy
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()
@@ -23,7 +23,7 @@ import ifcopenshell.util.element
import ifcopenshell.util.doc
import ifcopenshell.util.schema
import blenderbim.tool as tool
from blenderbim.bim.module.drawing.helper import format_distance
from ..drawing.helper import format_distance
def refresh():
@@ -27,8 +27,8 @@ import blenderbim.tool as tool
import blenderbim.core.style
import blenderbim.core.material as core
import blenderbim.bim.module.model.profile as model_profile
from blenderbim.bim.module.material.prop import purge as material_prop_purge
from blenderbim.bim.ifc import IfcStore
from .prop import purge as material_prop_purge
from ...ifc import IfcStore
class LoadMaterials(bpy.types.Operator, tool.Ifc.Operator):
@@ -19,9 +19,9 @@
import bpy
from ifcopenshell.util.doc import get_entity_doc
import blenderbim.tool as tool
from blenderbim.bim.module.material.data import MaterialsData, ObjectMaterialData
from blenderbim.bim.ifc import IfcStore
from blenderbim.bim.prop import StrProperty, Attribute
from .data import MaterialsData, ObjectMaterialData
from ...ifc import IfcStore
from ...prop import StrProperty, Attribute
from bpy.types import PropertyGroup
from bpy.props import (
PointerProperty,
@@ -20,11 +20,11 @@ import blenderbim.bim.helper
import blenderbim.tool as tool
import bpy
from bpy.types import Panel, UIList
from blenderbim.bim.ifc import IfcStore
from blenderbim.bim.helper import draw_attributes
from blenderbim.bim.helper import prop_with_search
from blenderbim.bim.module.material.data import MaterialsData, ObjectMaterialData
from blenderbim.bim.module.drawing.helper import format_distance
from ...ifc import IfcStore
from ...helper import draw_attributes
from ...helper import prop_with_search
from .data import MaterialsData, ObjectMaterialData
from ..drawing.helper import format_distance
class BIM_PT_materials(Panel):
@@ -24,7 +24,7 @@ import blenderbim.tool as tool
import blenderbim.core.misc as core
import blenderbim.core.geometry as core_geometry
import blenderbim.core.root
from blenderbim.bim.ifc import IfcStore
from ...ifc import IfcStore
from mathutils import Vector, Matrix, Euler
@@ -17,7 +17,7 @@
# along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>.
import bpy
from blenderbim.bim.prop import StrProperty, Attribute
from ...prop import StrProperty, Attribute
from bpy.types import PropertyGroup
from bpy.props import (
PointerProperty,
@@ -30,7 +30,7 @@ import blenderbim.tool as tool
import blenderbim.core.geometry
import blenderbim.core.geometry as core
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
@@ -19,8 +19,8 @@
import bpy
import ifcopenshell
import ifcopenshell.api
from blenderbim.bim.module.model import root, product, wall, slab, profile, opening, task
from blenderbim.bim.ifc import IfcStore
from . import root, product, wall, slab, profile, opening, task
from ...ifc import IfcStore
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 mathutils import Vector, Matrix
from ifcopenshell.util.shape_builder import ShapeBuilder
from blenderbim.bim.module.model.profile import DumbProfileJoiner
from blenderbim.tool.cad import VTX_PRECISION
from .profile import DumbProfileJoiner
from ....tool.cad import VTX_PRECISION
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.bim.import_ifc as import_ifc
import blenderbim.bim.handler
from blenderbim.bim.ifc import IfcStore
from ...ifc import IfcStore
from math import pi, radians
from mathutils import Vector, Matrix
from bpy.types import Operator

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