mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-12 14:33:28 +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.element
|
||||||
import ifcopenshell.util.schema
|
import ifcopenshell.util.schema
|
||||||
import csv
|
import csv
|
||||||
import lark
|
|
||||||
import argparse
|
import argparse
|
||||||
|
|
||||||
|
|
||||||
@@ -21,7 +20,7 @@ class IfcAttributeSetter:
|
|||||||
if "." not in key:
|
if "." not in key:
|
||||||
return element
|
return element
|
||||||
if key[0:3] == "Qto":
|
if key[0:3] == "Qto":
|
||||||
qto, prop = key.split(".", 1)
|
qto_name, prop = key.split(".", 1)
|
||||||
qto = IfcAttributeSetter.get_element_qto(element, qto_name)
|
qto = IfcAttributeSetter.get_element_qto(element, qto_name)
|
||||||
if qto:
|
if qto:
|
||||||
IfcAttributeSetter.set_qto_property(qto, prop, value)
|
IfcAttributeSetter.set_qto_property(qto, prop, value)
|
||||||
|
|||||||
Reference in New Issue
Block a user