mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 06:58:56 +00:00
black .
This commit is contained in:
@@ -25,7 +25,9 @@ if TYPE_CHECKING:
|
|||||||
import bonsai.tool as tool
|
import bonsai.tool as tool
|
||||||
|
|
||||||
|
|
||||||
def copy_attribute_to_selection(ifc: tool.Ifc, root: tool.Root, name: str, value: Union[str, None], obj: bpy.types.Object) -> bool:
|
def copy_attribute_to_selection(
|
||||||
|
ifc: tool.Ifc, root: tool.Root, name: str, value: Union[str, None], obj: bpy.types.Object
|
||||||
|
) -> bool:
|
||||||
if element := ifc.get_entity(obj):
|
if element := ifc.get_entity(obj):
|
||||||
try:
|
try:
|
||||||
ifc.run("attribute.edit_attributes", product=element, attributes={name: value})
|
ifc.run("attribute.edit_attributes", product=element, attributes={name: value})
|
||||||
|
|||||||
Reference in New Issue
Block a user