Skip to content

Commit

Permalink
update blenderbim spreadsheet with qto basequantit
Browse files Browse the repository at this point in the history
  • Loading branch information
Coen Claus committed Jul 31, 2023
1 parent b4c8c48 commit af2d8c6
Show file tree
Hide file tree
Showing 260 changed files with 28 additions and 5 deletions.
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"description": "Filter IFC elements from a spreadsheet",
"author": "Coen Claus",
"version": (2, 0),
"blender": (3, 5, 0),
"blender": (3, 6, 1),
"location": "BlenderBIM | Spreadsheet tab",
"wiki_url": "https://github.com/C-Claus",
"tracker_url": "https://community.osarch.org/",
Expand Down
Binary file modified libs/site/packages/pandas/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file modified libs/site/packages/pandas/__pycache__/_typing.cpython-310.pyc
Binary file not shown.
Binary file modified libs/site/packages/pandas/__pycache__/_version.cpython-310.pyc
Binary file not shown.
Binary file modified libs/site/packages/pandas/__pycache__/testing.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified libs/site/packages/pandas/_testing/__pycache__/_io.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified libs/site/packages/pandas/core/__pycache__/api.cpython-310.pyc
Binary file not shown.
Binary file modified libs/site/packages/pandas/core/__pycache__/apply.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file modified libs/site/packages/pandas/core/__pycache__/base.cpython-310.pyc
Binary file not shown.
Binary file modified libs/site/packages/pandas/core/__pycache__/common.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified libs/site/packages/pandas/core/__pycache__/flags.cpython-310.pyc
Binary file not shown.
Binary file modified libs/site/packages/pandas/core/__pycache__/frame.cpython-310.pyc
Binary file not shown.
Binary file modified libs/site/packages/pandas/core/__pycache__/generic.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file modified libs/site/packages/pandas/core/__pycache__/missing.cpython-310.pyc
Binary file not shown.
Binary file modified libs/site/packages/pandas/core/__pycache__/nanops.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file modified libs/site/packages/pandas/core/__pycache__/sample.cpython-310.pyc
Binary file not shown.
Binary file modified libs/site/packages/pandas/core/__pycache__/series.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file modified libs/site/packages/pandas/core/__pycache__/sorting.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified libs/site/packages/pandas/io/__pycache__/api.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file modified libs/site/packages/pandas/io/__pycache__/common.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified libs/site/packages/pandas/io/__pycache__/gbq.cpython-310.pyc
Binary file not shown.
Binary file modified libs/site/packages/pandas/io/__pycache__/html.cpython-310.pyc
Binary file not shown.
Binary file modified libs/site/packages/pandas/io/__pycache__/orc.cpython-310.pyc
Binary file not shown.
Binary file modified libs/site/packages/pandas/io/__pycache__/parquet.cpython-310.pyc
Binary file not shown.
Binary file modified libs/site/packages/pandas/io/__pycache__/pickle.cpython-310.pyc
Binary file not shown.
Binary file modified libs/site/packages/pandas/io/__pycache__/pytables.cpython-310.pyc
Binary file not shown.
Binary file modified libs/site/packages/pandas/io/__pycache__/spss.cpython-310.pyc
Binary file not shown.
Binary file modified libs/site/packages/pandas/io/__pycache__/sql.cpython-310.pyc
Binary file not shown.
Binary file modified libs/site/packages/pandas/io/__pycache__/stata.cpython-310.pyc
Binary file not shown.
Binary file modified libs/site/packages/pandas/io/__pycache__/xml.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified libs/site/packages/pytz/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file modified libs/site/packages/pytz/__pycache__/exceptions.cpython-310.pyc
Binary file not shown.
Binary file modified libs/site/packages/pytz/__pycache__/lazy.cpython-310.pyc
Binary file not shown.
Binary file modified libs/site/packages/pytz/__pycache__/tzfile.cpython-310.pyc
Binary file not shown.
Binary file modified libs/site/packages/pytz/__pycache__/tzinfo.cpython-310.pyc
Binary file not shown.
31 changes: 27 additions & 4 deletions operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ def __init__(self, context):


ifc_pset_common = 'Pset_' + (str(product.is_a()).replace('Ifc','')) + 'Common'


for k,v in common_property_dict.items():
if v:
Expand All @@ -141,16 +142,35 @@ def __init__(self, context):
for k,v in quantity_property_dict.items():
if v:
property = str(k)
ifc_dictionary[property].append(self.get_ifc_properties_and_quantities( context,
ifc_product=product,
ifc_propertyset_name=prop.prop_basequantities,
ifc_property_name=property)[0])
#print ('property', property)
#print ('prop', prop.prop_basequantities)

qto_basequantities = 'Qto_' + (str(product.is_a()).replace('Ifc','')) + prop.prop_basequantities




#if ifc2x3:
# basequantites
#if ifc4:
# qto_quanties

if property:
ifc_dictionary[property].append(self.get_ifc_properties_and_quantities( context,
ifc_product=product,
ifc_propertyset_name=qto_basequantities,
ifc_property_name=property)[0])


if len(custom_collection.items) > 0:
for item in custom_property_unique_list:
property_set = str(item).split('.')[0]
property_name = str(item).split('.')[1]



#pset_qto_name = 'Qto_' + (str(product.is_a()).replace('Ifc','')) + 'BaseQuantities'

ifc_dictionary[item].append(str(self.get_ifc_properties_and_quantities(context,
ifc_product=product,
ifc_propertyset_name=property_set,
Expand Down Expand Up @@ -249,6 +269,9 @@ def get_ifc_properties_and_quantities(self, context, ifc_product, ifc_propertyse

if ifc_product:
pset_name = 'Pset_' + (str(ifc_product.is_a()).replace('Ifc','')) + 'Common'
#pset_qto_name = 'Qto_' + (str(ifc_product.is_a()).replace('Ifc','')) + 'BaseQuantities'

ifc_property_list.append(str(ifcopenshell.util.element.get_pset(ifc_product, ifc_propertyset_name, ifc_property_name)))
ifc_property_list.append(str(ifcopenshell.util.element.get_pset(ifc_product, ifc_propertyset_name, ifc_property_name)))

if not ifc_property_list:
Expand Down

0 comments on commit af2d8c6

Please sign in to comment.