mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-11 22:31:55 +00:00
Remove unused tool
This commit is contained in:
@@ -951,11 +951,11 @@ class Spatial:
|
|||||||
def get_active_container(cls): pass
|
def get_active_container(cls): pass
|
||||||
def get_container(cls, element): pass
|
def get_container(cls, element): pass
|
||||||
def get_decomposed_elements(cls, container, recursive): pass
|
def get_decomposed_elements(cls, container, recursive): pass
|
||||||
|
def get_decomposition(cls, element): pass
|
||||||
def get_object_matrix(cls, obj): pass
|
def get_object_matrix(cls, obj): pass
|
||||||
def get_relative_object_matrix(cls, target_obj, relative_to_obj): pass
|
def get_relative_object_matrix(cls, target_obj, relative_to_obj): pass
|
||||||
def get_selected_product_types(cls): pass
|
|
||||||
def get_root_element(cls, element): pass
|
def get_root_element(cls, element): pass
|
||||||
def get_decomposition(cls, element): pass
|
def get_selected_product_types(cls): pass
|
||||||
def get_selected_products(cls): pass
|
def get_selected_products(cls): pass
|
||||||
def import_spatial_decomposition(cls): pass
|
def import_spatial_decomposition(cls): pass
|
||||||
def import_spatial_element(cls, element, level_index): pass
|
def import_spatial_element(cls, element, level_index): pass
|
||||||
@@ -1125,15 +1125,15 @@ class Unit:
|
|||||||
def disable_editing_units(cls): pass
|
def disable_editing_units(cls): pass
|
||||||
def enable_editing_units(cls): pass
|
def enable_editing_units(cls): pass
|
||||||
def export_unit_attributes(cls): pass
|
def export_unit_attributes(cls): pass
|
||||||
|
def get_currency_name(cls): pass
|
||||||
|
def get_project_currency_unit(cls): pass
|
||||||
def get_scene_unit_name(cls, unit_type): pass
|
def get_scene_unit_name(cls, unit_type): pass
|
||||||
def get_scene_unit_si_prefix(cls, name): pass
|
def get_scene_unit_si_prefix(cls, name): pass
|
||||||
def import_unit_attributes(cls, unit): pass
|
def import_unit_attributes(cls, unit): pass
|
||||||
def import_units(cls): pass
|
def import_units(cls): pass
|
||||||
def is_scene_unit_metric(cls): pass
|
def is_si_unit(cls, name): pass
|
||||||
def is_unit_class(cls, unit, ifc_class): pass
|
def is_unit_class(cls, unit, ifc_class): pass
|
||||||
def set_active_unit(cls, unit): pass
|
def set_active_unit(cls, unit): pass
|
||||||
def get_project_currency_unit(cls): pass
|
|
||||||
def get_currency_name(cls): pass
|
|
||||||
|
|
||||||
@interface
|
@interface
|
||||||
class Voider:
|
class Voider:
|
||||||
|
|||||||
@@ -419,11 +419,6 @@ class Unit(bonsai.core.tool.Unit):
|
|||||||
new.is_assigned = unit in assigned_units
|
new.is_assigned = unit in assigned_units
|
||||||
new.ifc_class = unit.is_a()
|
new.ifc_class = unit.is_a()
|
||||||
|
|
||||||
@classmethod
|
|
||||||
def is_scene_unit_metric(cls) -> bool:
|
|
||||||
assert bpy.context.scene
|
|
||||||
return bpy.context.scene.unit_settings.system in ["METRIC", "NONE"]
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def is_unit_class(cls, unit: ifcopenshell.entity_instance, ifc_class: str) -> bool:
|
def is_unit_class(cls, unit: ifcopenshell.entity_instance, ifc_class: str) -> bool:
|
||||||
return unit.is_a(ifc_class)
|
return unit.is_a(ifc_class)
|
||||||
|
|||||||
@@ -434,18 +434,6 @@ class TestImportUnits(NewFile):
|
|||||||
assert second_prop.ifc_class == "IfcSIUnit"
|
assert second_prop.ifc_class == "IfcSIUnit"
|
||||||
|
|
||||||
|
|
||||||
class TestIsSceneUnitMetric(NewFile):
|
|
||||||
def test_run(self):
|
|
||||||
assert bpy.context.scene
|
|
||||||
props = bpy.context.scene.unit_settings
|
|
||||||
props.system = "METRIC"
|
|
||||||
assert subject.is_scene_unit_metric() is True
|
|
||||||
props.system = "IMPERIAL"
|
|
||||||
assert subject.is_scene_unit_metric() is False
|
|
||||||
props.system = "NONE"
|
|
||||||
assert subject.is_scene_unit_metric() is True
|
|
||||||
|
|
||||||
|
|
||||||
class TestIsUnitClass:
|
class TestIsUnitClass:
|
||||||
def test_run(self):
|
def test_run(self):
|
||||||
ifc = ifcopenshell.file()
|
ifc = ifcopenshell.file()
|
||||||
|
|||||||
Reference in New Issue
Block a user