mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 02:07:36 +00:00
Remove some unused imports
This commit is contained in:
@@ -34,7 +34,6 @@ IN_PACKAGE = __package__ == "bonsai"
|
|||||||
|
|
||||||
import platform
|
import platform
|
||||||
import re
|
import re
|
||||||
import shutil
|
|
||||||
import traceback
|
import traceback
|
||||||
import uuid
|
import uuid
|
||||||
import webbrowser
|
import webbrowser
|
||||||
|
|||||||
@@ -24,21 +24,14 @@ import os
|
|||||||
import tempfile
|
import tempfile
|
||||||
import zipfile
|
import zipfile
|
||||||
from logging import Logger
|
from logging import Logger
|
||||||
from math import radians
|
|
||||||
from typing import Union
|
from typing import Union
|
||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
import ifcopenshell
|
import ifcopenshell
|
||||||
import ifcopenshell.api
|
|
||||||
import ifcopenshell.util.element
|
import ifcopenshell.util.element
|
||||||
import ifcopenshell.util.placement
|
|
||||||
import ifcopenshell.util.unit
|
import ifcopenshell.util.unit
|
||||||
from mathutils import Vector
|
|
||||||
|
|
||||||
import bonsai.core.aggregate
|
|
||||||
import bonsai.core.geometry
|
import bonsai.core.geometry
|
||||||
import bonsai.core.spatial
|
|
||||||
import bonsai.core.style
|
|
||||||
import bonsai.tool as tool
|
import bonsai.tool as tool
|
||||||
from bonsai.bim.ifc import IfcStore
|
from bonsai.bim.ifc import IfcStore
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,6 @@ import bpy
|
|||||||
import ifcopenshell
|
import ifcopenshell
|
||||||
import ifcopenshell.ifcopenshell_wrapper as W
|
import ifcopenshell.ifcopenshell_wrapper as W
|
||||||
import ifcopenshell.util.attribute
|
import ifcopenshell.util.attribute
|
||||||
import ifcopenshell.util.element
|
|
||||||
import ifcopenshell.util.unit
|
import ifcopenshell.util.unit
|
||||||
from ifcopenshell.util.doc import (
|
from ifcopenshell.util.doc import (
|
||||||
get_attribute_doc,
|
get_attribute_doc,
|
||||||
|
|||||||
@@ -32,7 +32,6 @@ import ifcopenshell.api.pset
|
|||||||
import ifcopenshell.geom
|
import ifcopenshell.geom
|
||||||
import ifcopenshell.ifcopenshell_wrapper as W
|
import ifcopenshell.ifcopenshell_wrapper as W
|
||||||
import ifcopenshell.util.element
|
import ifcopenshell.util.element
|
||||||
import ifcopenshell.util.geolocation
|
|
||||||
import ifcopenshell.util.placement
|
import ifcopenshell.util.placement
|
||||||
import ifcopenshell.util.representation
|
import ifcopenshell.util.representation
|
||||||
import ifcopenshell.util.shape
|
import ifcopenshell.util.shape
|
||||||
|
|||||||
@@ -19,7 +19,6 @@
|
|||||||
import blf
|
import blf
|
||||||
import bpy
|
import bpy
|
||||||
import gpu
|
import gpu
|
||||||
import ifcopenshell
|
|
||||||
import ifcopenshell.util.element
|
import ifcopenshell.util.element
|
||||||
from bpy.types import SpaceView3D
|
from bpy.types import SpaceView3D
|
||||||
from bpy_extras import view3d_utils
|
from bpy_extras import view3d_utils
|
||||||
@@ -27,7 +26,6 @@ from gpu_extras.batch import batch_for_shader
|
|||||||
from mathutils import Vector
|
from mathutils import Vector
|
||||||
|
|
||||||
import bonsai.tool as tool
|
import bonsai.tool as tool
|
||||||
from bonsai.bim.module.geometry.decorator import ItemDecorator
|
|
||||||
|
|
||||||
|
|
||||||
def transparent_color(color, alpha=0.1):
|
def transparent_color(color, alpha=0.1):
|
||||||
|
|||||||
@@ -19,8 +19,6 @@
|
|||||||
from typing import TYPE_CHECKING
|
from typing import TYPE_CHECKING
|
||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
import ifcopenshell
|
|
||||||
import ifcopenshell.api
|
|
||||||
import ifcopenshell.api.group
|
import ifcopenshell.api.group
|
||||||
import ifcopenshell.api.pset
|
import ifcopenshell.api.pset
|
||||||
import ifcopenshell.api.root
|
import ifcopenshell.api.root
|
||||||
|
|||||||
@@ -23,12 +23,7 @@ import ifcopenshell.util.element
|
|||||||
from bpy.props import (
|
from bpy.props import (
|
||||||
BoolProperty,
|
BoolProperty,
|
||||||
CollectionProperty,
|
CollectionProperty,
|
||||||
EnumProperty,
|
|
||||||
FloatProperty,
|
|
||||||
FloatVectorProperty,
|
|
||||||
IntProperty,
|
|
||||||
PointerProperty,
|
PointerProperty,
|
||||||
StringProperty,
|
|
||||||
)
|
)
|
||||||
from bpy.types import PropertyGroup
|
from bpy.types import PropertyGroup
|
||||||
|
|
||||||
@@ -37,8 +32,6 @@ from bonsai.bim.module.aggregate.decorator import (
|
|||||||
AggregateDecorator,
|
AggregateDecorator,
|
||||||
AggregateModeDecorator,
|
AggregateModeDecorator,
|
||||||
)
|
)
|
||||||
from bonsai.bim.module.spatial.data import SpatialData
|
|
||||||
from bonsai.bim.prop import Attribute, StrProperty
|
|
||||||
|
|
||||||
|
|
||||||
def can_aggregate(relating_obj: bpy.types.Object, related_obj: bpy.types.Object) -> bool:
|
def can_aggregate(relating_obj: bpy.types.Object, related_obj: bpy.types.Object) -> bool:
|
||||||
|
|||||||
@@ -21,7 +21,6 @@ from bpy.types import Panel
|
|||||||
import bonsai.tool as tool
|
import bonsai.tool as tool
|
||||||
from bonsai.bim.ifc import IfcStore
|
from bonsai.bim.ifc import IfcStore
|
||||||
from bonsai.bim.module.aggregate.data import AggregateData
|
from bonsai.bim.module.aggregate.data import AggregateData
|
||||||
from bonsai.bim.module.group.data import GroupsData, ObjectGroupsData
|
|
||||||
|
|
||||||
|
|
||||||
class BIM_PT_aggregate(Panel):
|
class BIM_PT_aggregate(Panel):
|
||||||
|
|||||||
@@ -18,24 +18,14 @@
|
|||||||
|
|
||||||
# pyright: reportUnnecessaryTypeIgnoreComment=error
|
# pyright: reportUnnecessaryTypeIgnoreComment=error
|
||||||
|
|
||||||
import calendar
|
|
||||||
import json
|
|
||||||
import os
|
|
||||||
import time
|
import time
|
||||||
from datetime import datetime
|
|
||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
import ifcopenshell.api.alignment
|
import ifcopenshell.api.alignment
|
||||||
import ifcopenshell.api.spatial
|
import ifcopenshell.api.spatial
|
||||||
import ifcopenshell.geom
|
import ifcopenshell.geom
|
||||||
import ifcopenshell.util.selector
|
|
||||||
import ifcopenshell.util.sequence
|
|
||||||
import isodate
|
|
||||||
from bpy_extras.io_utils import ImportHelper
|
from bpy_extras.io_utils import ImportHelper
|
||||||
from dateutil import parser, relativedelta
|
|
||||||
|
|
||||||
import bonsai.bim.module.sequence.helper as helper
|
|
||||||
import bonsai.core.sequence as core
|
|
||||||
import bonsai.tool as tool
|
import bonsai.tool as tool
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -23,16 +23,12 @@ from bpy.props import (
|
|||||||
BoolProperty,
|
BoolProperty,
|
||||||
CollectionProperty,
|
CollectionProperty,
|
||||||
EnumProperty,
|
EnumProperty,
|
||||||
FloatProperty,
|
|
||||||
FloatVectorProperty,
|
|
||||||
IntProperty,
|
IntProperty,
|
||||||
PointerProperty,
|
|
||||||
StringProperty,
|
|
||||||
)
|
)
|
||||||
from bpy.types import PropertyGroup
|
from bpy.types import PropertyGroup
|
||||||
|
|
||||||
import bonsai.tool as tool
|
import bonsai.tool as tool
|
||||||
from bonsai.bim.prop import Attribute, StrProperty
|
from bonsai.bim.prop import Attribute
|
||||||
|
|
||||||
|
|
||||||
class BIMAttributeProperties(PropertyGroup):
|
class BIMAttributeProperties(PropertyGroup):
|
||||||
|
|||||||
@@ -19,9 +19,7 @@
|
|||||||
import os
|
import os
|
||||||
from typing import Union
|
from typing import Union
|
||||||
|
|
||||||
import bcf
|
|
||||||
import bcf.bcfxml
|
import bcf.bcfxml
|
||||||
import bcf.v2.bcfxml
|
|
||||||
import bpy
|
import bpy
|
||||||
|
|
||||||
import bonsai.tool as tool
|
import bonsai.tool as tool
|
||||||
|
|||||||
@@ -16,22 +16,18 @@
|
|||||||
# 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 Bonsai. If not, see <http://www.gnu.org/licenses/>.
|
# along with Bonsai. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import os
|
|
||||||
import tempfile
|
import tempfile
|
||||||
import uuid
|
import uuid
|
||||||
import webbrowser
|
import webbrowser
|
||||||
from math import atan, cos, degrees, radians, sin, tan
|
from math import atan, degrees, radians, tan
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
import bcf
|
|
||||||
import bcf.agnostic.topic
|
import bcf.agnostic.topic
|
||||||
import bcf.agnostic.visinfo
|
import bcf.agnostic.visinfo
|
||||||
import bcf.bcfxml
|
|
||||||
import bcf.v2.bcfxml
|
import bcf.v2.bcfxml
|
||||||
import bcf.v2.model
|
import bcf.v2.model
|
||||||
import bcf.v2.topic
|
import bcf.v2.topic
|
||||||
import bcf.v2.visinfo
|
import bcf.v2.visinfo
|
||||||
import bcf.v3
|
|
||||||
import bcf.v3.bcfxml
|
import bcf.v3.bcfxml
|
||||||
import bcf.v3.document
|
import bcf.v3.document
|
||||||
import bcf.v3.model
|
import bcf.v3.model
|
||||||
@@ -43,11 +39,10 @@ import ifcopenshell.util.geolocation
|
|||||||
import ifcopenshell.util.unit
|
import ifcopenshell.util.unit
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from bpy_extras.io_utils import ExportHelper, ImportHelper
|
from bpy_extras.io_utils import ExportHelper, ImportHelper
|
||||||
from mathutils import Euler, Matrix, Vector, geometry
|
from mathutils import Matrix, Vector
|
||||||
from xsdata.models.datatype import XmlDateTime
|
from xsdata.models.datatype import XmlDateTime
|
||||||
|
|
||||||
import bonsai.bim.module.bcf.bcfstore as bcfstore
|
import bonsai.bim.module.bcf.bcfstore as bcfstore
|
||||||
import bonsai.bim.module.bcf.prop as bcf_prop
|
|
||||||
import bonsai.tool as tool
|
import bonsai.tool as tool
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -24,8 +24,6 @@ from bpy.props import (
|
|||||||
BoolProperty,
|
BoolProperty,
|
||||||
CollectionProperty,
|
CollectionProperty,
|
||||||
EnumProperty,
|
EnumProperty,
|
||||||
FloatProperty,
|
|
||||||
FloatVectorProperty,
|
|
||||||
IntProperty,
|
IntProperty,
|
||||||
PointerProperty,
|
PointerProperty,
|
||||||
StringProperty,
|
StringProperty,
|
||||||
|
|||||||
@@ -18,7 +18,6 @@
|
|||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import os
|
|
||||||
from typing import TYPE_CHECKING
|
from typing import TYPE_CHECKING
|
||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ import bmesh
|
|||||||
import gpu
|
import gpu
|
||||||
from bpy.types import SpaceView3D
|
from bpy.types import SpaceView3D
|
||||||
from gpu_extras.batch import batch_for_shader
|
from gpu_extras.batch import batch_for_shader
|
||||||
from mathutils import Vector
|
|
||||||
|
|
||||||
import bonsai.tool as tool
|
import bonsai.tool as tool
|
||||||
|
|
||||||
|
|||||||
@@ -29,18 +29,15 @@ import ifcopenshell.api.root
|
|||||||
import ifcopenshell.geom
|
import ifcopenshell.geom
|
||||||
import ifcopenshell.util.element
|
import ifcopenshell.util.element
|
||||||
import ifcopenshell.util.placement
|
import ifcopenshell.util.placement
|
||||||
import ifcopenshell.util.representation
|
|
||||||
import ifcopenshell.util.shape
|
import ifcopenshell.util.shape
|
||||||
import ifcopenshell.util.unit
|
import ifcopenshell.util.unit
|
||||||
import mathutils
|
import mathutils
|
||||||
import numpy as np
|
|
||||||
import shapely
|
import shapely
|
||||||
import shapely.ops
|
import shapely.ops
|
||||||
from ifcopenshell.util.shape_builder import ShapeBuilder
|
from ifcopenshell.util.shape_builder import ShapeBuilder
|
||||||
from mathutils import Matrix, Vector
|
from mathutils import Matrix, Vector
|
||||||
|
|
||||||
import bonsai.bim.import_ifc as import_ifc
|
import bonsai.bim.import_ifc as import_ifc
|
||||||
import bonsai.core
|
|
||||||
import bonsai.core.geometry
|
import bonsai.core.geometry
|
||||||
import bonsai.tool as tool
|
import bonsai.tool as tool
|
||||||
from bonsai.bim.ifc import IfcStore
|
from bonsai.bim.ifc import IfcStore
|
||||||
|
|||||||
@@ -21,13 +21,7 @@ from typing import TYPE_CHECKING, Union
|
|||||||
import bpy
|
import bpy
|
||||||
from bpy.props import (
|
from bpy.props import (
|
||||||
BoolProperty,
|
BoolProperty,
|
||||||
CollectionProperty,
|
|
||||||
EnumProperty,
|
|
||||||
FloatProperty,
|
|
||||||
FloatVectorProperty,
|
|
||||||
IntProperty,
|
|
||||||
PointerProperty,
|
PointerProperty,
|
||||||
StringProperty,
|
|
||||||
)
|
)
|
||||||
from bpy.types import PropertyGroup
|
from bpy.types import PropertyGroup
|
||||||
|
|
||||||
|
|||||||
@@ -16,8 +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 Bonsai. If not, see <http://www.gnu.org/licenses/>.
|
# along with Bonsai. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import bpy
|
from bpy.types import Panel
|
||||||
from bpy.types import Panel, UIList
|
|
||||||
|
|
||||||
import bonsai.tool as tool
|
import bonsai.tool as tool
|
||||||
from bonsai.bim.module.boundary.data import SpaceBoundariesData
|
from bonsai.bim.module.boundary.data import SpaceBoundariesData
|
||||||
|
|||||||
@@ -19,7 +19,6 @@
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
import ifcopenshell.api
|
|
||||||
from bpy_extras.io_utils import ExportHelper, ImportHelper
|
from bpy_extras.io_utils import ExportHelper, ImportHelper
|
||||||
|
|
||||||
import bonsai.bim.handler
|
import bonsai.bim.handler
|
||||||
|
|||||||
@@ -23,10 +23,7 @@ from bpy.props import (
|
|||||||
BoolProperty,
|
BoolProperty,
|
||||||
CollectionProperty,
|
CollectionProperty,
|
||||||
EnumProperty,
|
EnumProperty,
|
||||||
FloatProperty,
|
|
||||||
FloatVectorProperty,
|
|
||||||
IntProperty,
|
IntProperty,
|
||||||
PointerProperty,
|
|
||||||
StringProperty,
|
StringProperty,
|
||||||
)
|
)
|
||||||
from bpy.types import PropertyGroup
|
from bpy.types import PropertyGroup
|
||||||
@@ -34,7 +31,7 @@ from bpy.types import PropertyGroup
|
|||||||
import bonsai.core.brick as core
|
import bonsai.core.brick as core
|
||||||
import bonsai.tool.brick as tool
|
import bonsai.tool.brick as tool
|
||||||
from bonsai.bim.module.brick.data import BrickschemaData, BrickschemaReferencesData
|
from bonsai.bim.module.brick.data import BrickschemaData, BrickschemaReferencesData
|
||||||
from bonsai.bim.prop import Attribute, StrProperty
|
from bonsai.bim.prop import StrProperty
|
||||||
from bonsai.tool.brick import BrickStore
|
from bonsai.tool.brick import BrickStore
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -16,13 +16,8 @@
|
|||||||
# 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 Bonsai. If not, see <http://www.gnu.org/licenses/>.
|
# along with Bonsai. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import bpy
|
|
||||||
import ifcopenshell
|
|
||||||
import ifcopenshell.util.classification
|
|
||||||
import ifcopenshell.util.date
|
|
||||||
|
|
||||||
import bonsai.tool as tool
|
import bonsai.tool as tool
|
||||||
from bonsai.bim.ifc import IfcStore
|
|
||||||
|
|
||||||
|
|
||||||
def refresh():
|
def refresh():
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ import textwrap
|
|||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
import bsdd
|
|
||||||
import ifcopenshell.api.pset
|
import ifcopenshell.api.pset
|
||||||
import ifcopenshell.util.element
|
import ifcopenshell.util.element
|
||||||
|
|
||||||
|
|||||||
@@ -23,10 +23,7 @@ from bpy.props import (
|
|||||||
BoolProperty,
|
BoolProperty,
|
||||||
CollectionProperty,
|
CollectionProperty,
|
||||||
EnumProperty,
|
EnumProperty,
|
||||||
FloatProperty,
|
|
||||||
FloatVectorProperty,
|
|
||||||
IntProperty,
|
IntProperty,
|
||||||
PointerProperty,
|
|
||||||
StringProperty,
|
StringProperty,
|
||||||
)
|
)
|
||||||
from bpy.types import PropertyGroup
|
from bpy.types import PropertyGroup
|
||||||
@@ -34,7 +31,7 @@ from bpy.types import PropertyGroup
|
|||||||
import bonsai.tool as tool
|
import bonsai.tool as tool
|
||||||
from bonsai.bim.module.bsdd.data import BSDDData
|
from bonsai.bim.module.bsdd.data import BSDDData
|
||||||
from bonsai.bim.module.classification.data import ClassificationsData
|
from bonsai.bim.module.classification.data import ClassificationsData
|
||||||
from bonsai.bim.prop import Attribute, StrProperty
|
from bonsai.bim.prop import Attribute
|
||||||
|
|
||||||
|
|
||||||
def get_active_dictionary(self: "BIMBSDDProperties", context: object) -> tool.Blender.BLENDER_ENUM_ITEMS:
|
def get_active_dictionary(self: "BIMBSDDProperties", context: object) -> tool.Blender.BLENDER_ENUM_ITEMS:
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ import bpy
|
|||||||
from bpy.types import Panel, UIList
|
from bpy.types import Panel, UIList
|
||||||
|
|
||||||
import bonsai.tool as tool
|
import bonsai.tool as tool
|
||||||
import bsdd
|
|
||||||
from bonsai.bim.module.bsdd.data import BSDDData
|
from bonsai.bim.module.bsdd.data import BSDDData
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
|
|||||||
@@ -17,13 +17,11 @@
|
|||||||
# along with Bonsai. If not, see <http://www.gnu.org/licenses/>.
|
# along with Bonsai. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import math
|
import math
|
||||||
from math import cos, pi, radians, sin, sqrt
|
from math import pi, sqrt
|
||||||
from typing import Union
|
|
||||||
|
|
||||||
import bmesh
|
import bmesh
|
||||||
import bpy
|
import bpy
|
||||||
import bpy_extras
|
import bpy_extras
|
||||||
import ifcopenshell.util.unit
|
|
||||||
import mathutils
|
import mathutils
|
||||||
from mathutils import Matrix, Vector
|
from mathutils import Matrix, Vector
|
||||||
|
|
||||||
|
|||||||
@@ -22,8 +22,6 @@ from typing import TYPE_CHECKING
|
|||||||
import bpy
|
import bpy
|
||||||
from bpy.types import PropertyGroup
|
from bpy.types import PropertyGroup
|
||||||
|
|
||||||
from bonsai.bim.module.model.data import AuthoringData
|
|
||||||
|
|
||||||
|
|
||||||
class BIMCadProperties(PropertyGroup):
|
class BIMCadProperties(PropertyGroup):
|
||||||
resolution: bpy.props.IntProperty(name="Arc Resolution", min=1, default=1)
|
resolution: bpy.props.IntProperty(name="Arc Resolution", min=1, default=1)
|
||||||
|
|||||||
@@ -20,12 +20,10 @@ import os
|
|||||||
from functools import partial
|
from functools import partial
|
||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
import ifcopenshell.util.unit
|
|
||||||
from bpy.types import WorkSpaceTool
|
from bpy.types import WorkSpaceTool
|
||||||
|
|
||||||
import bonsai.bim.module.type.prop as type_prop
|
|
||||||
import bonsai.tool as tool
|
import bonsai.tool as tool
|
||||||
from bonsai.bim.module.model.data import AuthoringData, RailingData, RoofData
|
from bonsai.bim.module.model.data import RailingData, RoofData
|
||||||
|
|
||||||
|
|
||||||
def load_custom_icons():
|
def load_custom_icons():
|
||||||
|
|||||||
@@ -18,9 +18,6 @@
|
|||||||
|
|
||||||
import json
|
import json
|
||||||
|
|
||||||
import bpy
|
|
||||||
import ifcopenshell.util.element
|
|
||||||
|
|
||||||
import bonsai.tool as tool
|
import bonsai.tool as tool
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,6 @@
|
|||||||
# along with Bonsai. If not, see <http://www.gnu.org/licenses/>.
|
# along with Bonsai. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import blf
|
import blf
|
||||||
import bmesh
|
|
||||||
import gpu
|
import gpu
|
||||||
from bpy.types import SpaceView3D
|
from bpy.types import SpaceView3D
|
||||||
from bpy_extras.view3d_utils import location_3d_to_region_2d
|
from bpy_extras.view3d_utils import location_3d_to_region_2d
|
||||||
|
|||||||
@@ -18,16 +18,13 @@
|
|||||||
|
|
||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
import os
|
|
||||||
import tempfile
|
import tempfile
|
||||||
from math import radians
|
from math import radians
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import TYPE_CHECKING
|
from typing import TYPE_CHECKING
|
||||||
|
|
||||||
import bmesh
|
|
||||||
import bpy
|
import bpy
|
||||||
import ifcopenshell
|
import ifcopenshell
|
||||||
import numpy as np
|
|
||||||
from bpy_extras.io_utils import ExportHelper, ImportHelper
|
from bpy_extras.io_utils import ExportHelper, ImportHelper
|
||||||
from mathutils import Matrix, Vector
|
from mathutils import Matrix, Vector
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ from bpy.props import (
|
|||||||
FloatProperty,
|
FloatProperty,
|
||||||
FloatVectorProperty,
|
FloatVectorProperty,
|
||||||
IntProperty,
|
IntProperty,
|
||||||
PointerProperty,
|
|
||||||
StringProperty,
|
StringProperty,
|
||||||
)
|
)
|
||||||
from bpy.types import PropertyGroup
|
from bpy.types import PropertyGroup
|
||||||
@@ -34,7 +33,7 @@ from ifcopenshell.geom.main import CLASH_TYPE_ITEMS, ClashType
|
|||||||
from mathutils import Vector
|
from mathutils import Vector
|
||||||
|
|
||||||
import bonsai.tool as tool
|
import bonsai.tool as tool
|
||||||
from bonsai.bim.prop import Attribute, BIMFilterGroup, StrProperty
|
from bonsai.bim.prop import BIMFilterGroup, StrProperty
|
||||||
|
|
||||||
|
|
||||||
class ClashSource(PropertyGroup):
|
class ClashSource(PropertyGroup):
|
||||||
|
|||||||
@@ -18,7 +18,6 @@
|
|||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
import ifcopenshell
|
import ifcopenshell
|
||||||
import ifcopenshell.api
|
|
||||||
import ifcopenshell.api.classification
|
import ifcopenshell.api.classification
|
||||||
import ifcopenshell.api.pset
|
import ifcopenshell.api.pset
|
||||||
import ifcopenshell.util.classification
|
import ifcopenshell.util.classification
|
||||||
|
|||||||
@@ -23,10 +23,7 @@ from bpy.props import (
|
|||||||
BoolProperty,
|
BoolProperty,
|
||||||
CollectionProperty,
|
CollectionProperty,
|
||||||
EnumProperty,
|
EnumProperty,
|
||||||
FloatProperty,
|
|
||||||
FloatVectorProperty,
|
|
||||||
IntProperty,
|
IntProperty,
|
||||||
PointerProperty,
|
|
||||||
StringProperty,
|
StringProperty,
|
||||||
)
|
)
|
||||||
from bpy.types import PropertyGroup
|
from bpy.types import PropertyGroup
|
||||||
|
|||||||
@@ -25,7 +25,6 @@ import ifcopenshell.util.classification
|
|||||||
from bpy.types import Panel, UIList
|
from bpy.types import Panel, UIList
|
||||||
|
|
||||||
import bonsai.bim.helper
|
import bonsai.bim.helper
|
||||||
import bonsai.bim.module.classification.prop as classification_prop
|
|
||||||
import bonsai.tool as tool
|
import bonsai.tool as tool
|
||||||
from bonsai.bim.module.classification.data import (
|
from bonsai.bim.module.classification.data import (
|
||||||
ClassificationsData,
|
ClassificationsData,
|
||||||
|
|||||||
@@ -19,7 +19,6 @@
|
|||||||
from typing import TYPE_CHECKING
|
from typing import TYPE_CHECKING
|
||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
import ifcopenshell.api
|
|
||||||
import ifcopenshell.api.constraint
|
import ifcopenshell.api.constraint
|
||||||
|
|
||||||
import bonsai.bim.helper
|
import bonsai.bim.helper
|
||||||
|
|||||||
@@ -20,19 +20,13 @@ from typing import TYPE_CHECKING, Literal
|
|||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
from bpy.props import (
|
from bpy.props import (
|
||||||
BoolProperty,
|
|
||||||
CollectionProperty,
|
CollectionProperty,
|
||||||
EnumProperty,
|
EnumProperty,
|
||||||
FloatProperty,
|
|
||||||
FloatVectorProperty,
|
|
||||||
IntProperty,
|
IntProperty,
|
||||||
PointerProperty,
|
|
||||||
StringProperty,
|
StringProperty,
|
||||||
)
|
)
|
||||||
from bpy.types import PropertyGroup
|
from bpy.types import PropertyGroup
|
||||||
from ifcopenshell.util.doc import get_entity_doc
|
|
||||||
|
|
||||||
import bonsai.tool as tool
|
|
||||||
from bonsai.bim.module.constraint.data import ConstraintsData
|
from bonsai.bim.module.constraint.data import ConstraintsData
|
||||||
from bonsai.bim.prop import Attribute
|
from bonsai.bim.prop import Attribute
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,6 @@
|
|||||||
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
import bpy
|
|
||||||
import ifcopenshell
|
import ifcopenshell
|
||||||
|
|
||||||
import bonsai.tool as tool
|
import bonsai.tool as tool
|
||||||
|
|||||||
@@ -20,19 +20,13 @@ from typing import TYPE_CHECKING
|
|||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
from bpy.props import (
|
from bpy.props import (
|
||||||
BoolProperty,
|
|
||||||
CollectionProperty,
|
CollectionProperty,
|
||||||
EnumProperty,
|
EnumProperty,
|
||||||
FloatProperty,
|
|
||||||
FloatVectorProperty,
|
|
||||||
IntProperty,
|
IntProperty,
|
||||||
PointerProperty,
|
|
||||||
StringProperty,
|
|
||||||
)
|
)
|
||||||
from bpy.types import PropertyGroup
|
from bpy.types import PropertyGroup
|
||||||
|
|
||||||
from bonsai.bim.module.context.data import ContextData
|
from bonsai.bim.prop import Attribute
|
||||||
from bonsai.bim.prop import Attribute, StrProperty
|
|
||||||
|
|
||||||
|
|
||||||
class BIMContextProperties(PropertyGroup):
|
class BIMContextProperties(PropertyGroup):
|
||||||
|
|||||||
@@ -18,13 +18,11 @@
|
|||||||
|
|
||||||
from typing import Any, Union
|
from typing import Any, Union
|
||||||
|
|
||||||
import bpy
|
|
||||||
import ifcopenshell
|
import ifcopenshell
|
||||||
import ifcopenshell.util.cost
|
import ifcopenshell.util.cost
|
||||||
import ifcopenshell.util.date
|
import ifcopenshell.util.date
|
||||||
import ifcopenshell.util.element
|
import ifcopenshell.util.element
|
||||||
import ifcopenshell.util.unit
|
import ifcopenshell.util.unit
|
||||||
from ifcopenshell.util.doc import get_entity_doc, get_predefined_type_doc
|
|
||||||
|
|
||||||
import bonsai.tool as tool
|
import bonsai.tool as tool
|
||||||
|
|
||||||
|
|||||||
@@ -987,10 +987,10 @@ class ExportCostSchedulesToPDF(bpy.types.Operator, ExportHelper):
|
|||||||
@classmethod
|
@classmethod
|
||||||
def poll(cls, context):
|
def poll(cls, context):
|
||||||
try:
|
try:
|
||||||
import typst
|
import typst # noqa: F401
|
||||||
|
|
||||||
return True
|
return True
|
||||||
except:
|
except ModuleNotFoundError:
|
||||||
cls.poll_message_set(
|
cls.poll_message_set(
|
||||||
"Typst not available.\nIt can be installed from Quality and\nControl -> Debug and using 'typst' with Pip Install.\n(Run Blender as Administrator)"
|
"Typst not available.\nIt can be installed from Quality and\nControl -> Debug and using 'typst' with Pip Install.\n(Run Blender as Administrator)"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -19,16 +19,13 @@
|
|||||||
from typing import TYPE_CHECKING, Literal, Union
|
from typing import TYPE_CHECKING, Literal, Union
|
||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
import ifcopenshell.api
|
|
||||||
import ifcopenshell.api.cost
|
import ifcopenshell.api.cost
|
||||||
from bpy.props import (
|
from bpy.props import (
|
||||||
BoolProperty,
|
BoolProperty,
|
||||||
CollectionProperty,
|
CollectionProperty,
|
||||||
EnumProperty,
|
EnumProperty,
|
||||||
FloatProperty,
|
FloatProperty,
|
||||||
FloatVectorProperty,
|
|
||||||
IntProperty,
|
IntProperty,
|
||||||
PointerProperty,
|
|
||||||
StringProperty,
|
StringProperty,
|
||||||
)
|
)
|
||||||
from bpy.types import PropertyGroup
|
from bpy.types import PropertyGroup
|
||||||
|
|||||||
@@ -21,7 +21,6 @@ import os
|
|||||||
from functools import partial
|
from functools import partial
|
||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
import ifcopenshell
|
|
||||||
from bpy.types import WorkSpaceTool
|
from bpy.types import WorkSpaceTool
|
||||||
|
|
||||||
import bonsai.tool as tool
|
import bonsai.tool as tool
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ import json
|
|||||||
from math import atan2, degrees
|
from math import atan2, degrees
|
||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
import ifcopenshell
|
|
||||||
import ifcopenshell.util.element
|
import ifcopenshell.util.element
|
||||||
|
|
||||||
import bonsai.tool as tool
|
import bonsai.tool as tool
|
||||||
|
|||||||
@@ -19,14 +19,10 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import json
|
import json
|
||||||
import logging
|
|
||||||
import os
|
|
||||||
import tempfile
|
|
||||||
from collections import Counter
|
from collections import Counter
|
||||||
from typing import TYPE_CHECKING
|
from typing import TYPE_CHECKING
|
||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
import ifccsv
|
|
||||||
import ifcopenshell
|
import ifcopenshell
|
||||||
import ifcopenshell.util.selector
|
import ifcopenshell.util.selector
|
||||||
from bpy_extras.io_utils import ExportHelper, ImportHelper
|
from bpy_extras.io_utils import ExportHelper, ImportHelper
|
||||||
|
|||||||
@@ -23,15 +23,11 @@ from bpy.props import (
|
|||||||
BoolProperty,
|
BoolProperty,
|
||||||
CollectionProperty,
|
CollectionProperty,
|
||||||
EnumProperty,
|
EnumProperty,
|
||||||
FloatProperty,
|
|
||||||
FloatVectorProperty,
|
|
||||||
IntProperty,
|
|
||||||
PointerProperty,
|
|
||||||
StringProperty,
|
StringProperty,
|
||||||
)
|
)
|
||||||
from bpy.types import PropertyGroup
|
from bpy.types import PropertyGroup
|
||||||
|
|
||||||
from bonsai.bim.prop import BIMFilterGroup, StrProperty
|
from bonsai.bim.prop import BIMFilterGroup
|
||||||
|
|
||||||
|
|
||||||
class CsvAttribute(PropertyGroup):
|
class CsvAttribute(PropertyGroup):
|
||||||
|
|||||||
@@ -29,7 +29,6 @@ from typing import TYPE_CHECKING, Any, Literal, Union, assert_never, get_args
|
|||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
import ifcopenshell
|
import ifcopenshell
|
||||||
import ifcopenshell.api
|
|
||||||
import ifcopenshell.api.pset
|
import ifcopenshell.api.pset
|
||||||
import ifcopenshell.geom
|
import ifcopenshell.geom
|
||||||
import ifcopenshell.ifcopenshell_wrapper as W
|
import ifcopenshell.ifcopenshell_wrapper as W
|
||||||
|
|||||||
@@ -20,13 +20,9 @@ from typing import TYPE_CHECKING, Literal, get_args
|
|||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
from bpy.props import (
|
from bpy.props import (
|
||||||
BoolProperty,
|
|
||||||
CollectionProperty,
|
CollectionProperty,
|
||||||
EnumProperty,
|
EnumProperty,
|
||||||
FloatProperty,
|
|
||||||
FloatVectorProperty,
|
|
||||||
IntProperty,
|
IntProperty,
|
||||||
PointerProperty,
|
|
||||||
StringProperty,
|
StringProperty,
|
||||||
)
|
)
|
||||||
from bpy.types import PropertyGroup
|
from bpy.types import PropertyGroup
|
||||||
|
|||||||
@@ -32,18 +32,10 @@
|
|||||||
|
|
||||||
from typing import TYPE_CHECKING
|
from typing import TYPE_CHECKING
|
||||||
|
|
||||||
import bpy
|
|
||||||
|
|
||||||
# Properties have many different data types. We won't use all of them in this
|
# Properties have many different data types. We won't use all of them in this
|
||||||
# demo module, but this is a list for your reference.
|
# demo module, but this is a list for your reference.
|
||||||
from bpy.props import (
|
from bpy.props import (
|
||||||
BoolProperty,
|
BoolProperty,
|
||||||
CollectionProperty,
|
|
||||||
EnumProperty,
|
|
||||||
FloatProperty,
|
|
||||||
FloatVectorProperty,
|
|
||||||
IntProperty,
|
|
||||||
PointerProperty,
|
|
||||||
StringProperty,
|
StringProperty,
|
||||||
)
|
)
|
||||||
from bpy.types import PropertyGroup
|
from bpy.types import PropertyGroup
|
||||||
|
|||||||
@@ -23,16 +23,12 @@ from bpy.props import (
|
|||||||
BoolProperty,
|
BoolProperty,
|
||||||
CollectionProperty,
|
CollectionProperty,
|
||||||
EnumProperty,
|
EnumProperty,
|
||||||
FloatProperty,
|
|
||||||
FloatVectorProperty,
|
|
||||||
IntProperty,
|
|
||||||
PointerProperty,
|
|
||||||
StringProperty,
|
StringProperty,
|
||||||
)
|
)
|
||||||
from bpy.types import PropertyGroup
|
from bpy.types import PropertyGroup
|
||||||
|
|
||||||
from bonsai.bim.module.diff.data import DiffData
|
from bonsai.bim.module.diff.data import DiffData
|
||||||
from bonsai.bim.prop import BIMFilterGroup, StrProperty
|
from bonsai.bim.prop import BIMFilterGroup
|
||||||
|
|
||||||
|
|
||||||
def update_diff_json_file(self: "DiffProperties", context: bpy.types.Context) -> None:
|
def update_diff_json_file(self: "DiffProperties", context: bpy.types.Context) -> None:
|
||||||
|
|||||||
@@ -19,8 +19,6 @@
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
import ifcopenshell
|
|
||||||
import ifcopenshell.util.schema
|
|
||||||
from natsort import natsorted
|
from natsort import natsorted
|
||||||
|
|
||||||
import bonsai.tool as tool
|
import bonsai.tool as tool
|
||||||
|
|||||||
@@ -20,10 +20,9 @@ import json
|
|||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
|
|
||||||
import bonsai.bim.handler
|
|
||||||
import bonsai.core.document as core
|
import bonsai.core.document as core
|
||||||
import bonsai.tool as tool
|
import bonsai.tool as tool
|
||||||
from bonsai.bim.module.document.data import DocumentData, ObjectDocumentData
|
from bonsai.bim.module.document.data import ObjectDocumentData
|
||||||
|
|
||||||
|
|
||||||
class LoadProjectDocuments(bpy.types.Operator):
|
class LoadProjectDocuments(bpy.types.Operator):
|
||||||
|
|||||||
@@ -5,17 +5,14 @@ from bpy.props import (
|
|||||||
BoolProperty,
|
BoolProperty,
|
||||||
CollectionProperty,
|
CollectionProperty,
|
||||||
EnumProperty,
|
EnumProperty,
|
||||||
FloatProperty,
|
|
||||||
FloatVectorProperty,
|
|
||||||
IntProperty,
|
IntProperty,
|
||||||
PointerProperty,
|
|
||||||
StringProperty,
|
StringProperty,
|
||||||
)
|
)
|
||||||
from bpy.types import PropertyGroup
|
from bpy.types import PropertyGroup
|
||||||
|
|
||||||
import bonsai.tool as tool
|
import bonsai.tool as tool
|
||||||
from bonsai.bim.module.document.data import DocumentData, refresh
|
from bonsai.bim.module.document.data import DocumentData, refresh
|
||||||
from bonsai.bim.prop import Attribute, StrProperty
|
from bonsai.bim.prop import Attribute
|
||||||
|
|
||||||
|
|
||||||
def update_document_name(self: "Document", context: bpy.types.Context) -> None:
|
def update_document_name(self: "Document", context: bpy.types.Context) -> None:
|
||||||
|
|||||||
@@ -16,7 +16,6 @@
|
|||||||
# 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 Bonsai. If not, see <http://www.gnu.org/licenses/>.
|
# along with Bonsai. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import bpy
|
|
||||||
from bpy.types import Panel, UIList
|
from bpy.types import Panel, UIList
|
||||||
|
|
||||||
import bonsai.tool as tool
|
import bonsai.tool as tool
|
||||||
|
|||||||
@@ -18,15 +18,12 @@
|
|||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import math
|
|
||||||
import os
|
|
||||||
from pathlib import Path
|
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
import bmesh
|
import bmesh
|
||||||
import bpy
|
import bpy
|
||||||
import ifcopenshell.util.element
|
import ifcopenshell.util.element
|
||||||
from mathutils import Matrix, Vector
|
from mathutils import Vector
|
||||||
|
|
||||||
import bonsai.tool as tool
|
import bonsai.tool as tool
|
||||||
|
|
||||||
|
|||||||
@@ -23,8 +23,6 @@ from typing import Any, Union
|
|||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
import ifcopenshell.util.element
|
import ifcopenshell.util.element
|
||||||
import ifcopenshell.util.representation
|
|
||||||
import ifcopenshell.util.selector
|
|
||||||
import ifcopenshell.util.unit
|
import ifcopenshell.util.unit
|
||||||
from natsort import natsorted
|
from natsort import natsorted
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ from functools import cache
|
|||||||
from math import acos, atan, cos, degrees, pi, radians, sin
|
from math import acos, atan, cos, degrees, pi, radians, sin
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from timeit import default_timer as timer
|
from timeit import default_timer as timer
|
||||||
from typing import Optional, Union
|
from typing import Optional
|
||||||
|
|
||||||
import blf
|
import blf
|
||||||
import bmesh
|
import bmesh
|
||||||
@@ -34,7 +34,6 @@ import ifcopenshell.util.element
|
|||||||
import ifcopenshell.util.representation
|
import ifcopenshell.util.representation
|
||||||
import ifcopenshell.util.unit
|
import ifcopenshell.util.unit
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import shapely
|
|
||||||
from bpy.types import SpaceView3D
|
from bpy.types import SpaceView3D
|
||||||
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
|
||||||
|
|||||||
@@ -17,10 +17,8 @@
|
|||||||
# along with Bonsai. If not, see <http://www.gnu.org/licenses/>.
|
# along with Bonsai. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import math
|
import math
|
||||||
from typing import Union
|
|
||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
import ifcopenshell
|
|
||||||
import ifcopenshell.util.element
|
import ifcopenshell.util.element
|
||||||
import ifcopenshell.util.unit
|
import ifcopenshell.util.unit
|
||||||
import mathutils.geometry
|
import mathutils.geometry
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ import hashlib
|
|||||||
import json
|
import json
|
||||||
import multiprocessing
|
import multiprocessing
|
||||||
import os
|
import os
|
||||||
import re
|
|
||||||
import shutil
|
import shutil
|
||||||
import subprocess
|
import subprocess
|
||||||
import time
|
import time
|
||||||
@@ -42,7 +41,6 @@ import bmesh
|
|||||||
import bpy
|
import bpy
|
||||||
import logging
|
import logging
|
||||||
import ifcopenshell
|
import ifcopenshell
|
||||||
import ifcopenshell.api
|
|
||||||
import ifcopenshell.api.document
|
import ifcopenshell.api.document
|
||||||
import ifcopenshell.api.pset
|
import ifcopenshell.api.pset
|
||||||
import ifcopenshell.api.style
|
import ifcopenshell.api.style
|
||||||
@@ -55,17 +53,14 @@ import ifcopenshell.util.shape_builder
|
|||||||
import ifcopenshell.util.unit
|
import ifcopenshell.util.unit
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import shapely
|
import shapely
|
||||||
import shapely.ops
|
|
||||||
from bpy_extras.image_utils import load_image
|
from bpy_extras.image_utils import load_image
|
||||||
from bpy_extras.io_utils import ImportHelper
|
from bpy_extras.io_utils import ImportHelper
|
||||||
from lxml import etree
|
from lxml import etree
|
||||||
from mathutils import Color, Matrix, Vector
|
from mathutils import Color, Vector
|
||||||
|
|
||||||
import bonsai.bim.import_ifc
|
import bonsai.bim.import_ifc
|
||||||
import bonsai.bim.export_ifc
|
import bonsai.bim.export_ifc
|
||||||
import bonsai.bim.handler
|
import bonsai.bim.handler
|
||||||
import bonsai.bim.helper
|
|
||||||
import bonsai.bim.module.drawing.annotation as annotation
|
|
||||||
import bonsai.bim.module.drawing.sheeter as sheeter
|
import bonsai.bim.module.drawing.sheeter as sheeter
|
||||||
import bonsai.bim.module.drawing.svgwriter as svgwriter
|
import bonsai.bim.module.drawing.svgwriter as svgwriter
|
||||||
import bonsai.core.drawing as core
|
import bonsai.core.drawing as core
|
||||||
|
|||||||
@@ -18,14 +18,11 @@
|
|||||||
|
|
||||||
import enum
|
import enum
|
||||||
import json
|
import json
|
||||||
import os
|
|
||||||
from collections.abc import Callable
|
from collections.abc import Callable
|
||||||
from pathlib import Path
|
from typing import TYPE_CHECKING, Any, Literal, Union
|
||||||
from typing import TYPE_CHECKING, Any, Literal, Union, get_args
|
|
||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
import ifcopenshell
|
import ifcopenshell
|
||||||
import ifcopenshell.api
|
|
||||||
import ifcopenshell.api.pset
|
import ifcopenshell.api.pset
|
||||||
import ifcopenshell.util.element
|
import ifcopenshell.util.element
|
||||||
from bpy.props import (
|
from bpy.props import (
|
||||||
@@ -34,7 +31,6 @@ from bpy.props import (
|
|||||||
CollectionProperty,
|
CollectionProperty,
|
||||||
EnumProperty,
|
EnumProperty,
|
||||||
FloatProperty,
|
FloatProperty,
|
||||||
FloatVectorProperty,
|
|
||||||
IntProperty,
|
IntProperty,
|
||||||
PointerProperty,
|
PointerProperty,
|
||||||
StringProperty,
|
StringProperty,
|
||||||
@@ -42,19 +38,17 @@ from bpy.props import (
|
|||||||
from bpy.types import PropertyGroup
|
from bpy.types import PropertyGroup
|
||||||
from mathutils import Matrix
|
from mathutils import Matrix
|
||||||
|
|
||||||
import bonsai.bim.module.drawing.annotation as annotation
|
|
||||||
import bonsai.bim.module.drawing.decoration as decoration
|
import bonsai.bim.module.drawing.decoration as decoration
|
||||||
import bonsai.core.drawing as core
|
import bonsai.core.drawing as core
|
||||||
import bonsai.tool as tool
|
import bonsai.tool as tool
|
||||||
from bonsai.bim.module.drawing.data import (
|
from bonsai.bim.module.drawing.data import (
|
||||||
AnnotationData,
|
AnnotationData,
|
||||||
DecoratorData,
|
|
||||||
DrawingsData,
|
DrawingsData,
|
||||||
ElementValuesData,
|
ElementValuesData,
|
||||||
SheetsData,
|
SheetsData,
|
||||||
)
|
)
|
||||||
from bonsai.bim.module.drawing.data import refresh as refresh_drawing_data
|
from bonsai.bim.module.drawing.data import refresh as refresh_drawing_data
|
||||||
from bonsai.bim.prop import Attribute, BIMFilterGroup, StrProperty
|
from bonsai.bim.prop import Attribute, BIMFilterGroup
|
||||||
|
|
||||||
diagram_scales_enum = []
|
diagram_scales_enum = []
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,6 @@ import string
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from textwrap import wrap
|
from textwrap import wrap
|
||||||
|
|
||||||
import bpy
|
|
||||||
import openpyxl
|
import openpyxl
|
||||||
import openpyxl.cell # Unnecessary, bug in typeshed.
|
import openpyxl.cell # Unnecessary, bug in typeshed.
|
||||||
import openpyxl.utils # Unnecessary, bug in typeshed.
|
import openpyxl.utils # Unnecessary, bug in typeshed.
|
||||||
@@ -33,7 +32,6 @@ from odf.table import Table, TableCell, TableColumn, TableRow
|
|||||||
from odf.text import P
|
from odf.text import P
|
||||||
|
|
||||||
import bonsai.tool as tool
|
import bonsai.tool as tool
|
||||||
from bonsai.bim.ifc import IfcStore
|
|
||||||
from bonsai.bim.module.drawing.svgwriter import SvgWriter
|
from bonsai.bim.module.drawing.svgwriter import SvgWriter
|
||||||
|
|
||||||
DEBUG = False
|
DEBUG = False
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ import xml.etree.ElementTree as ET
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from xml.dom import minidom
|
from xml.dom import minidom
|
||||||
|
|
||||||
import bpy
|
|
||||||
import ifcopenshell.util.geolocation
|
import ifcopenshell.util.geolocation
|
||||||
import pystache
|
import pystache
|
||||||
from mathutils import Vector
|
from mathutils import Vector
|
||||||
|
|||||||
@@ -18,7 +18,6 @@
|
|||||||
|
|
||||||
import math
|
import math
|
||||||
import os
|
import os
|
||||||
import re
|
|
||||||
import shutil
|
import shutil
|
||||||
import xml.etree.ElementTree as ET
|
import xml.etree.ElementTree as ET
|
||||||
from collections.abc import Callable, Sequence
|
from collections.abc import Callable, Sequence
|
||||||
@@ -30,10 +29,8 @@ import bmesh
|
|||||||
import bpy
|
import bpy
|
||||||
import ifcopenshell
|
import ifcopenshell
|
||||||
import ifcopenshell.util.element
|
import ifcopenshell.util.element
|
||||||
import ifcopenshell.util.representation
|
|
||||||
import ifcopenshell.util.selector
|
import ifcopenshell.util.selector
|
||||||
import ifcopenshell.util.unit
|
import ifcopenshell.util.unit
|
||||||
import mathutils
|
|
||||||
import svgwrite
|
import svgwrite
|
||||||
import svgwrite.container
|
import svgwrite.container
|
||||||
import svgwrite.text
|
import svgwrite.text
|
||||||
|
|||||||
@@ -30,7 +30,6 @@ from bonsai.bim.module.drawing.data import (
|
|||||||
DocumentsData,
|
DocumentsData,
|
||||||
DrawingsData,
|
DrawingsData,
|
||||||
ElementFiltersData,
|
ElementFiltersData,
|
||||||
ElementValuesData,
|
|
||||||
ProductAssignmentsData,
|
ProductAssignmentsData,
|
||||||
SheetsData,
|
SheetsData,
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -16,8 +16,6 @@
|
|||||||
# 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 Bonsai. If not, see <http://www.gnu.org/licenses/>.
|
# along with Bonsai. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import importlib
|
|
||||||
import os
|
|
||||||
|
|
||||||
import ifcfm
|
import ifcfm
|
||||||
|
|
||||||
|
|||||||
@@ -16,10 +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 Bonsai. If not, see <http://www.gnu.org/licenses/>.
|
# along with Bonsai. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import json
|
|
||||||
import logging
|
|
||||||
import os
|
import os
|
||||||
import tempfile
|
|
||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
import ifcfm
|
import ifcfm
|
||||||
|
|||||||
@@ -23,11 +23,7 @@ from bpy.props import (
|
|||||||
BoolProperty,
|
BoolProperty,
|
||||||
CollectionProperty,
|
CollectionProperty,
|
||||||
EnumProperty,
|
EnumProperty,
|
||||||
FloatProperty,
|
|
||||||
FloatVectorProperty,
|
|
||||||
IntProperty,
|
|
||||||
PointerProperty,
|
PointerProperty,
|
||||||
StringProperty,
|
|
||||||
)
|
)
|
||||||
from bpy.types import PropertyGroup
|
from bpy.types import PropertyGroup
|
||||||
|
|
||||||
|
|||||||
@@ -16,8 +16,6 @@
|
|||||||
# 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 Bonsai. If not, see <http://www.gnu.org/licenses/>.
|
# along with Bonsai. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import math
|
|
||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
import ifcopenshell.util.element
|
import ifcopenshell.util.element
|
||||||
from bpy.app.handlers import persistent
|
from bpy.app.handlers import persistent
|
||||||
|
|||||||
@@ -19,7 +19,6 @@
|
|||||||
from collections.abc import Sequence
|
from collections.abc import Sequence
|
||||||
|
|
||||||
import blf
|
import blf
|
||||||
import bmesh
|
|
||||||
import bpy
|
import bpy
|
||||||
import gpu
|
import gpu
|
||||||
import ifcopenshell
|
import ifcopenshell
|
||||||
|
|||||||
@@ -16,22 +16,17 @@
|
|||||||
# 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 Bonsai. If not, see <http://www.gnu.org/licenses/>.
|
# along with Bonsai. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
from math import pi, pow
|
from math import pi
|
||||||
from typing import Any, Optional, TypeVar, Union
|
from typing import Any, Optional, TypeVar, Union
|
||||||
|
|
||||||
import bmesh
|
import bmesh
|
||||||
import bpy
|
import bpy
|
||||||
import ifcopenshell
|
import ifcopenshell
|
||||||
import ifcopenshell.util.shape
|
|
||||||
import ifcopenshell.util.unit
|
import ifcopenshell.util.unit
|
||||||
import mathutils
|
import mathutils
|
||||||
import numpy as np
|
|
||||||
import shapely
|
|
||||||
from ifcopenshell.util.shape_builder import ShapeBuilder
|
from ifcopenshell.util.shape_builder import ShapeBuilder
|
||||||
from mathutils import Matrix, Vector, geometry
|
from mathutils import Matrix, Vector, geometry
|
||||||
|
|
||||||
import bonsai.tool as tool
|
|
||||||
|
|
||||||
T = TypeVar("T")
|
T = TypeVar("T")
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,6 @@
|
|||||||
# 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 Bonsai. If not, see <http://www.gnu.org/licenses/>.
|
# along with Bonsai. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import re
|
|
||||||
from collections.abc import Sequence
|
from collections.abc import Sequence
|
||||||
from time import time
|
from time import time
|
||||||
from typing import (
|
from typing import (
|
||||||
@@ -32,11 +31,9 @@ from typing import (
|
|||||||
import bmesh
|
import bmesh
|
||||||
import bpy
|
import bpy
|
||||||
import ifcopenshell
|
import ifcopenshell
|
||||||
import ifcopenshell.api
|
|
||||||
import ifcopenshell.api.boundary
|
import ifcopenshell.api.boundary
|
||||||
import ifcopenshell.api.drawing
|
import ifcopenshell.api.drawing
|
||||||
import ifcopenshell.api.geometry
|
import ifcopenshell.api.geometry
|
||||||
import ifcopenshell.api.grid
|
|
||||||
import ifcopenshell.api.group
|
import ifcopenshell.api.group
|
||||||
import ifcopenshell.api.layer
|
import ifcopenshell.api.layer
|
||||||
import ifcopenshell.api.material
|
import ifcopenshell.api.material
|
||||||
@@ -61,10 +58,8 @@ import bonsai.core.geometry as core
|
|||||||
import bonsai.core.nest
|
import bonsai.core.nest
|
||||||
import bonsai.core.root
|
import bonsai.core.root
|
||||||
import bonsai.core.spatial
|
import bonsai.core.spatial
|
||||||
import bonsai.core.style
|
|
||||||
import bonsai.tool as tool
|
import bonsai.tool as tool
|
||||||
from bonsai.bim.ifc import IfcStore
|
from bonsai.bim.ifc import IfcStore
|
||||||
from bonsai.bim.module.model.data import AuthoringData
|
|
||||||
from bonsai.bim.module.model.decorator import ProfileDecorator
|
from bonsai.bim.module.model.decorator import ProfileDecorator
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
|
|||||||
@@ -24,8 +24,6 @@ from bpy.props import (
|
|||||||
BoolProperty,
|
BoolProperty,
|
||||||
CollectionProperty,
|
CollectionProperty,
|
||||||
EnumProperty,
|
EnumProperty,
|
||||||
FloatProperty,
|
|
||||||
FloatVectorProperty,
|
|
||||||
IntProperty,
|
IntProperty,
|
||||||
PointerProperty,
|
PointerProperty,
|
||||||
StringProperty,
|
StringProperty,
|
||||||
@@ -34,7 +32,6 @@ from bpy.types import PropertyGroup
|
|||||||
|
|
||||||
import bonsai.tool as tool
|
import bonsai.tool as tool
|
||||||
from bonsai.bim.module.geometry.data import RepresentationsData, ViewportData
|
from bonsai.bim.module.geometry.data import RepresentationsData, ViewportData
|
||||||
from bonsai.bim.prop import Attribute, ObjProperty, StrProperty
|
|
||||||
|
|
||||||
|
|
||||||
def get_contexts(self: "BIMObjectGeometryProperties", context: bpy.types.Context) -> list[tuple[str, str, str]]:
|
def get_contexts(self: "BIMObjectGeometryProperties", context: bpy.types.Context) -> list[tuple[str, str, str]]:
|
||||||
|
|||||||
@@ -17,7 +17,6 @@
|
|||||||
# along with Bonsai. If not, see <http://www.gnu.org/licenses/>.
|
# along with Bonsai. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
import bpy
|
|
||||||
import ifcopenshell.util.element
|
import ifcopenshell.util.element
|
||||||
import ifcopenshell.util.geolocation
|
import ifcopenshell.util.geolocation
|
||||||
import ifcopenshell.util.schema
|
import ifcopenshell.util.schema
|
||||||
|
|||||||
@@ -19,10 +19,7 @@
|
|||||||
from math import radians
|
from math import radians
|
||||||
|
|
||||||
import blf
|
import blf
|
||||||
import bmesh
|
|
||||||
import bpy
|
|
||||||
import gpu
|
import gpu
|
||||||
import ifcopenshell
|
|
||||||
import ifcopenshell.util.geolocation
|
import ifcopenshell.util.geolocation
|
||||||
from bpy.types import SpaceView3D
|
from bpy.types import SpaceView3D
|
||||||
from bpy_extras.view3d_utils import location_3d_to_region_2d
|
from bpy_extras.view3d_utils import location_3d_to_region_2d
|
||||||
|
|||||||
@@ -21,7 +21,6 @@ from bpy_extras.io_utils import ImportHelper
|
|||||||
|
|
||||||
import bonsai.core.georeference as core
|
import bonsai.core.georeference as core
|
||||||
import bonsai.tool as tool
|
import bonsai.tool as tool
|
||||||
from bonsai.bim.module.georeference.decorator import GeoreferenceDecorator
|
|
||||||
|
|
||||||
|
|
||||||
class AddGeoreferencing(bpy.types.Operator, tool.Ifc.Operator):
|
class AddGeoreferencing(bpy.types.Operator, tool.Ifc.Operator):
|
||||||
|
|||||||
@@ -23,11 +23,7 @@ import ifcopenshell.util.geolocation
|
|||||||
from bpy.props import (
|
from bpy.props import (
|
||||||
BoolProperty,
|
BoolProperty,
|
||||||
CollectionProperty,
|
CollectionProperty,
|
||||||
EnumProperty,
|
|
||||||
FloatProperty,
|
FloatProperty,
|
||||||
FloatVectorProperty,
|
|
||||||
IntProperty,
|
|
||||||
PointerProperty,
|
|
||||||
StringProperty,
|
StringProperty,
|
||||||
)
|
)
|
||||||
from bpy.types import PropertyGroup
|
from bpy.types import PropertyGroup
|
||||||
|
|||||||
@@ -17,9 +17,6 @@
|
|||||||
# along with Bonsai. If not, see <http://www.gnu.org/licenses/>.
|
# along with Bonsai. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
import ifcopenshell
|
|
||||||
import ifcopenshell.util.cost
|
|
||||||
import ifcopenshell.util.element
|
|
||||||
|
|
||||||
import bonsai.tool as tool
|
import bonsai.tool as tool
|
||||||
|
|
||||||
|
|||||||
@@ -16,10 +16,9 @@
|
|||||||
# 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 Bonsai. If not, see <http://www.gnu.org/licenses/>.
|
# along with Bonsai. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
from typing import TYPE_CHECKING, Literal, get_args
|
from typing import TYPE_CHECKING, get_args
|
||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
import ifcopenshell.api
|
|
||||||
import ifcopenshell.api.group
|
import ifcopenshell.api.group
|
||||||
import ifcopenshell.util.element
|
import ifcopenshell.util.element
|
||||||
|
|
||||||
|
|||||||
@@ -22,18 +22,14 @@ import bpy
|
|||||||
from bpy.props import (
|
from bpy.props import (
|
||||||
BoolProperty,
|
BoolProperty,
|
||||||
CollectionProperty,
|
CollectionProperty,
|
||||||
EnumProperty,
|
|
||||||
FloatProperty,
|
|
||||||
FloatVectorProperty,
|
|
||||||
IntProperty,
|
IntProperty,
|
||||||
PointerProperty,
|
|
||||||
StringProperty,
|
StringProperty,
|
||||||
)
|
)
|
||||||
from bpy.types import PropertyGroup
|
from bpy.types import PropertyGroup
|
||||||
|
|
||||||
import bonsai.tool as tool
|
import bonsai.tool as tool
|
||||||
from bonsai.bim.module.pset.data import refresh as refresh_pset
|
from bonsai.bim.module.pset.data import refresh as refresh_pset
|
||||||
from bonsai.bim.prop import Attribute, StrProperty
|
from bonsai.bim.prop import Attribute
|
||||||
|
|
||||||
|
|
||||||
def update_active_group_index(self, context):
|
def update_active_group_index(self, context):
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
import bpy
|
|
||||||
|
|
||||||
# import tool
|
# import tool
|
||||||
import bonsai.tool as tool
|
import bonsai.tool as tool
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,6 @@
|
|||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
import ifcopenshell
|
|
||||||
|
|
||||||
import bonsai.tool as tool
|
import bonsai.tool as tool
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,6 @@
|
|||||||
from typing import TYPE_CHECKING
|
from typing import TYPE_CHECKING
|
||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
import ifcopenshell.api
|
|
||||||
import ifcopenshell.api.layer
|
import ifcopenshell.api.layer
|
||||||
import ifcopenshell.util.element
|
import ifcopenshell.util.element
|
||||||
|
|
||||||
|
|||||||
@@ -23,16 +23,13 @@ from bpy.props import (
|
|||||||
BoolProperty,
|
BoolProperty,
|
||||||
CollectionProperty,
|
CollectionProperty,
|
||||||
EnumProperty,
|
EnumProperty,
|
||||||
FloatProperty,
|
|
||||||
FloatVectorProperty,
|
|
||||||
IntProperty,
|
IntProperty,
|
||||||
PointerProperty,
|
|
||||||
StringProperty,
|
StringProperty,
|
||||||
)
|
)
|
||||||
from bpy.types import PropertyGroup
|
from bpy.types import PropertyGroup
|
||||||
|
|
||||||
import bonsai.tool as tool
|
import bonsai.tool as tool
|
||||||
from bonsai.bim.prop import Attribute, StrProperty
|
from bonsai.bim.prop import Attribute
|
||||||
|
|
||||||
|
|
||||||
def update_layer_property(self: "Layer", context: bpy.types.Context, *, property: str) -> None:
|
def update_layer_property(self: "Layer", context: bpy.types.Context, *, property: str) -> None:
|
||||||
|
|||||||
@@ -17,7 +17,6 @@
|
|||||||
# along with Bonsai. If not, see <http://www.gnu.org/licenses/>.
|
# along with Bonsai. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
import ifcopenshell.api
|
|
||||||
|
|
||||||
import bonsai.core.library as core
|
import bonsai.core.library as core
|
||||||
import bonsai.tool as tool
|
import bonsai.tool as tool
|
||||||
|
|||||||
@@ -20,20 +20,16 @@ from typing import TYPE_CHECKING, Literal
|
|||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
from bpy.props import (
|
from bpy.props import (
|
||||||
BoolProperty,
|
|
||||||
CollectionProperty,
|
CollectionProperty,
|
||||||
EnumProperty,
|
EnumProperty,
|
||||||
FloatProperty,
|
|
||||||
FloatVectorProperty,
|
|
||||||
IntProperty,
|
IntProperty,
|
||||||
PointerProperty,
|
|
||||||
StringProperty,
|
StringProperty,
|
||||||
)
|
)
|
||||||
from bpy.types import PropertyGroup
|
from bpy.types import PropertyGroup
|
||||||
|
|
||||||
import bonsai.tool as tool
|
import bonsai.tool as tool
|
||||||
from bonsai.bim.module.library.data import LibrariesData
|
from bonsai.bim.module.library.data import LibrariesData
|
||||||
from bonsai.bim.prop import Attribute, StrProperty
|
from bonsai.bim.prop import Attribute
|
||||||
|
|
||||||
|
|
||||||
def update_active_reference_index(self, context):
|
def update_active_reference_index(self, context):
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ import bonsai.tool as tool
|
|||||||
from bonsai.bim.module.library.data import LibrariesData, LibraryReferencesData
|
from bonsai.bim.module.library.data import LibrariesData, LibraryReferencesData
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from bonsai.bim.module.library.prop import BIMLibraryProperties, LibraryReference
|
from bonsai.bim.module.library.prop import LibraryReference
|
||||||
|
|
||||||
|
|
||||||
class BIM_PT_libraries(Panel):
|
class BIM_PT_libraries(Panel):
|
||||||
|
|||||||
@@ -16,10 +16,8 @@
|
|||||||
# 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 Bonsai. If not, see <http://www.gnu.org/licenses/>.
|
# along with Bonsai. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import importlib
|
|
||||||
import importlib.util
|
import importlib.util
|
||||||
import stat
|
import stat
|
||||||
import traceback
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
|
|||||||
@@ -16,9 +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 Bonsai. If not, see <http://www.gnu.org/licenses/>.
|
# along with Bonsai. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import bpy
|
|
||||||
import ifcopenshell.util.geolocation
|
import ifcopenshell.util.geolocation
|
||||||
from mathutils import Vector
|
|
||||||
|
|
||||||
import bonsai.tool as tool
|
import bonsai.tool as tool
|
||||||
|
|
||||||
|
|||||||
@@ -16,10 +16,8 @@
|
|||||||
# 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 Bonsai. If not, see <http://www.gnu.org/licenses/>.
|
# along with Bonsai. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
from math import degrees, radians
|
|
||||||
|
|
||||||
import blf
|
import blf
|
||||||
import bmesh
|
|
||||||
import bpy
|
import bpy
|
||||||
import gpu
|
import gpu
|
||||||
from bpy.types import SpaceView3D
|
from bpy.types import SpaceView3D
|
||||||
|
|||||||
@@ -16,14 +16,12 @@
|
|||||||
# 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 Bonsai. If not, see <http://www.gnu.org/licenses/>.
|
# along with Bonsai. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import os
|
|
||||||
from typing import Any, Union
|
from typing import Any, Union
|
||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
import ifcopenshell
|
import ifcopenshell
|
||||||
import ifcopenshell.util.doc
|
import ifcopenshell.util.doc
|
||||||
import ifcopenshell.util.element
|
import ifcopenshell.util.element
|
||||||
import ifcopenshell.util.schema
|
|
||||||
from natsort import natsorted
|
from natsort import natsorted
|
||||||
|
|
||||||
import bonsai.tool as tool
|
import bonsai.tool as tool
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ import json
|
|||||||
from typing import TYPE_CHECKING, Any, Literal, Union
|
from typing import TYPE_CHECKING, Any, Literal, Union
|
||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
import ifcopenshell.api
|
|
||||||
import ifcopenshell.api.material
|
import ifcopenshell.api.material
|
||||||
import ifcopenshell.api.profile
|
import ifcopenshell.api.profile
|
||||||
import ifcopenshell.api.style
|
import ifcopenshell.api.style
|
||||||
|
|||||||
@@ -19,25 +19,21 @@
|
|||||||
from typing import TYPE_CHECKING
|
from typing import TYPE_CHECKING
|
||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
import ifcopenshell
|
|
||||||
from bpy.props import (
|
from bpy.props import (
|
||||||
BoolProperty,
|
BoolProperty,
|
||||||
CollectionProperty,
|
CollectionProperty,
|
||||||
EnumProperty,
|
EnumProperty,
|
||||||
FloatProperty,
|
FloatProperty,
|
||||||
FloatVectorProperty,
|
|
||||||
IntProperty,
|
IntProperty,
|
||||||
PointerProperty,
|
|
||||||
StringProperty,
|
StringProperty,
|
||||||
)
|
)
|
||||||
from bpy.types import PropertyGroup
|
from bpy.types import PropertyGroup
|
||||||
from ifcopenshell.util.doc import get_entity_doc
|
|
||||||
|
|
||||||
import bonsai.tool as tool
|
import bonsai.tool as tool
|
||||||
from bonsai.bim.module.classification.data import MaterialClassificationsData
|
from bonsai.bim.module.classification.data import MaterialClassificationsData
|
||||||
from bonsai.bim.module.material.data import MaterialsData, ObjectMaterialData
|
from bonsai.bim.module.material.data import MaterialsData, ObjectMaterialData
|
||||||
from bonsai.bim.module.profile.data import ProfileData
|
from bonsai.bim.module.profile.data import ProfileData
|
||||||
from bonsai.bim.prop import Attribute, StrProperty
|
from bonsai.bim.prop import Attribute
|
||||||
|
|
||||||
|
|
||||||
def get_profile_classes(self, context):
|
def get_profile_classes(self, context):
|
||||||
|
|||||||
@@ -22,7 +22,6 @@ from typing import TYPE_CHECKING, Any
|
|||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
import ifcopenshell.util.element
|
import ifcopenshell.util.element
|
||||||
import ifcopenshell.util.unit
|
|
||||||
from bpy.types import Panel, UIList
|
from bpy.types import Panel, UIList
|
||||||
|
|
||||||
import bonsai.bim.helper
|
import bonsai.bim.helper
|
||||||
|
|||||||
@@ -19,12 +19,11 @@
|
|||||||
from typing import TYPE_CHECKING, Literal, assert_never, get_args
|
from typing import TYPE_CHECKING, Literal, assert_never, get_args
|
||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
import ifcopenshell
|
|
||||||
import ifcopenshell.util.geolocation
|
import ifcopenshell.util.geolocation
|
||||||
import ifcopenshell.util.placement
|
import ifcopenshell.util.placement
|
||||||
import ifcopenshell.util.unit
|
import ifcopenshell.util.unit
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from mathutils import Euler, Matrix, Vector
|
from mathutils import Matrix
|
||||||
|
|
||||||
import bonsai.core.geometry as core_geometry
|
import bonsai.core.geometry as core_geometry
|
||||||
import bonsai.core.misc as core
|
import bonsai.core.misc as core
|
||||||
|
|||||||
@@ -16,21 +16,12 @@
|
|||||||
# 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 Bonsai. If not, see <http://www.gnu.org/licenses/>.
|
# along with Bonsai. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import bpy
|
|
||||||
from bpy.props import (
|
from bpy.props import (
|
||||||
BoolProperty,
|
|
||||||
CollectionProperty,
|
|
||||||
EnumProperty,
|
|
||||||
FloatProperty,
|
|
||||||
FloatVectorProperty,
|
FloatVectorProperty,
|
||||||
IntProperty,
|
IntProperty,
|
||||||
PointerProperty,
|
|
||||||
StringProperty,
|
|
||||||
)
|
)
|
||||||
from bpy.types import PropertyGroup
|
from bpy.types import PropertyGroup
|
||||||
|
|
||||||
from bonsai.bim.prop import Attribute, StrProperty
|
|
||||||
|
|
||||||
|
|
||||||
class BIMMiscProperties(PropertyGroup):
|
class BIMMiscProperties(PropertyGroup):
|
||||||
total_storeys: IntProperty(
|
total_storeys: IntProperty(
|
||||||
|
|||||||
@@ -19,12 +19,10 @@
|
|||||||
import json
|
import json
|
||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
import ifcopenshell
|
|
||||||
import ifcopenshell.api
|
|
||||||
import ifcopenshell.api.pset
|
import ifcopenshell.api.pset
|
||||||
import ifcopenshell.util.element
|
import ifcopenshell.util.element
|
||||||
import ifcopenshell.util.unit
|
import ifcopenshell.util.unit
|
||||||
from mathutils import Matrix, Vector
|
from mathutils import Matrix
|
||||||
|
|
||||||
import bonsai.tool as tool
|
import bonsai.tool as tool
|
||||||
|
|
||||||
|
|||||||
@@ -18,8 +18,6 @@
|
|||||||
|
|
||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
import ifcopenshell
|
|
||||||
import ifcopenshell.util.element
|
|
||||||
|
|
||||||
import bonsai.core.covering as core
|
import bonsai.core.covering as core
|
||||||
import bonsai.tool as tool
|
import bonsai.tool as tool
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ import bpy
|
|||||||
import ifcopenshell
|
import ifcopenshell
|
||||||
import ifcopenshell.util.element
|
import ifcopenshell.util.element
|
||||||
import ifcopenshell.util.schema
|
import ifcopenshell.util.schema
|
||||||
from ifcopenshell.util.doc import get_entity_doc, get_predefined_type_doc
|
from ifcopenshell.util.doc import get_entity_doc
|
||||||
from natsort import natsorted
|
from natsort import natsorted
|
||||||
|
|
||||||
import bonsai.tool as tool
|
import bonsai.tool as tool
|
||||||
@@ -424,12 +424,12 @@ class SverchokData:
|
|||||||
return tool.Model.get_modeling_bbim_pset_data(bpy.context.active_object, "BBIM_Sverchok")
|
return tool.Model.get_modeling_bbim_pset_data(bpy.context.active_object, "BBIM_Sverchok")
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def has_sverchok(cls):
|
def has_sverchok(cls) -> bool:
|
||||||
try:
|
try:
|
||||||
import sverchok
|
import sverchok # noqa: F401
|
||||||
|
|
||||||
return True
|
return True
|
||||||
except:
|
except ModuleNotFoundError:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -19,9 +19,8 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import math
|
import math
|
||||||
from itertools import chain
|
|
||||||
from math import cos, radians, sin, tan
|
from math import cos, radians, sin, tan
|
||||||
from typing import Any, Literal, Union
|
from typing import Any, Literal
|
||||||
|
|
||||||
import blf
|
import blf
|
||||||
import bmesh
|
import bmesh
|
||||||
|
|||||||
@@ -17,21 +17,18 @@
|
|||||||
# along with Bonsai. If not, see <http://www.gnu.org/licenses/>.
|
# along with Bonsai. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
import collections
|
|
||||||
import collections.abc
|
import collections.abc
|
||||||
import json
|
import json
|
||||||
from typing import TYPE_CHECKING, get_args
|
from typing import TYPE_CHECKING
|
||||||
|
|
||||||
import bmesh
|
import bmesh
|
||||||
import bpy
|
import bpy
|
||||||
import ifcopenshell
|
import ifcopenshell
|
||||||
import ifcopenshell.api
|
|
||||||
import ifcopenshell.api.geometry
|
import ifcopenshell.api.geometry
|
||||||
import ifcopenshell.api.material
|
import ifcopenshell.api.material
|
||||||
import ifcopenshell.api.pset
|
import ifcopenshell.api.pset
|
||||||
import ifcopenshell.util.element
|
import ifcopenshell.util.element
|
||||||
import ifcopenshell.util.representation
|
import ifcopenshell.util.representation
|
||||||
import ifcopenshell.util.schema
|
|
||||||
import ifcopenshell.util.unit
|
import ifcopenshell.util.unit
|
||||||
from mathutils import Matrix, Vector
|
from mathutils import Matrix, Vector
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,6 @@
|
|||||||
from typing import TYPE_CHECKING
|
from typing import TYPE_CHECKING
|
||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
import ifcopenshell.api
|
|
||||||
import ifcopenshell.api.grid
|
import ifcopenshell.api.grid
|
||||||
from bpy.props import FloatProperty, IntProperty
|
from bpy.props import FloatProperty, IntProperty
|
||||||
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
Reference in New Issue
Block a user