mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 15:08:51 +00:00
black .
This commit is contained in:
@@ -556,6 +556,7 @@ class ResetObjectColours(Operator):
|
|||||||
|
|
||||||
class ToggleFilterSelection(Operator):
|
class ToggleFilterSelection(Operator):
|
||||||
"Click to select/deselect current selection"
|
"Click to select/deselect current selection"
|
||||||
|
|
||||||
bl_idname = "bim.toggle_filter_selection"
|
bl_idname = "bim.toggle_filter_selection"
|
||||||
bl_label = "Toggle Filter Selection"
|
bl_label = "Toggle Filter Selection"
|
||||||
action: EnumProperty(items=(("SELECT", "Select", ""), ("DESELECT", "Deselect", "")))
|
action: EnumProperty(items=(("SELECT", "Select", ""), ("DESELECT", "Deselect", "")))
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
# You should have received a copy of the GNU Lesser General Public License
|
# You should have received a copy of the GNU Lesser General Public License
|
||||||
# along with IfcPatch. If not, see <http://www.gnu.org/licenses/>.
|
# along with IfcPatch. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
""" This script regenerates all drawing paths in case they have been created in a different operating system.
|
"""This script regenerates all drawing paths in case they have been created in a different operating system.
|
||||||
|
|
||||||
It is useful when an annotation drawing has been created on windows and you want to recreate the
|
It is useful when an annotation drawing has been created on windows and you want to recreate the
|
||||||
drawig in linux.
|
drawig in linux.
|
||||||
|
|||||||
@@ -232,7 +232,7 @@ def serialize_shape(shape):
|
|||||||
|
|
||||||
|
|
||||||
def create_shape_from_serialization(
|
def create_shape_from_serialization(
|
||||||
brep_object: Union[ifcopenshell_wrapper.SerializedElement, ifcopenshell_wrapper.Serialization]
|
brep_object: Union[ifcopenshell_wrapper.SerializedElement, ifcopenshell_wrapper.Serialization],
|
||||||
) -> Union[shape_tuple, TopoDS.TopoDS_Shape]:
|
) -> Union[shape_tuple, TopoDS.TopoDS_Shape]:
|
||||||
brep_data, occ_shape, styles, style_ids = None, None, (), ()
|
brep_data, occ_shape, styles, style_ids = None, None, (), ()
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ from typing import Union
|
|||||||
|
|
||||||
|
|
||||||
def get_primitive_type(
|
def get_primitive_type(
|
||||||
attribute_or_data_type: Union[ifcopenshell_wrapper.attribute, ifcopenshell_wrapper.parameter_type]
|
attribute_or_data_type: Union[ifcopenshell_wrapper.attribute, ifcopenshell_wrapper.parameter_type],
|
||||||
) -> Union[str, tuple[str, list[str]]]:
|
) -> Union[str, tuple[str, list[str]]]:
|
||||||
if hasattr(attribute_or_data_type, "type_of_attribute"):
|
if hasattr(attribute_or_data_type, "type_of_attribute"):
|
||||||
data_type = str(attribute_or_data_type.type_of_attribute())
|
data_type = str(attribute_or_data_type.type_of_attribute())
|
||||||
|
|||||||
Reference in New Issue
Block a user