mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 09:21:46 +00:00
Ivccsv fixes (#1385)
* ifccsv: Fix reference to invalid variable * ifccsv: Remove unused import
This commit is contained in:
@@ -6,7 +6,6 @@ import ifcopenshell.util.selector
|
||||
import ifcopenshell.util.element
|
||||
import ifcopenshell.util.schema
|
||||
import csv
|
||||
import lark
|
||||
import argparse
|
||||
|
||||
|
||||
@@ -21,7 +20,7 @@ class IfcAttributeSetter:
|
||||
if "." not in key:
|
||||
return element
|
||||
if key[0:3] == "Qto":
|
||||
qto, prop = key.split(".", 1)
|
||||
qto_name, prop = key.split(".", 1)
|
||||
qto = IfcAttributeSetter.get_element_qto(element, qto_name)
|
||||
if qto:
|
||||
IfcAttributeSetter.set_qto_property(qto, prop, value)
|
||||
|
||||
Reference in New Issue
Block a user