mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 10:33:20 +00:00
Allow calculation of depth
This commit is contained in:
@@ -15,7 +15,7 @@ class QtoCalculator():
|
||||
return self.get_length(obj)
|
||||
elif 'width' in prop_name:
|
||||
return self.get_width(obj)
|
||||
elif 'height' in prop_name:
|
||||
elif 'height' in prop_name or 'depth' in prop_name:
|
||||
return self.get_height(obj)
|
||||
elif 'area' in prop_name \
|
||||
and ('footprint' in prop_name or 'section' in prop_name):
|
||||
|
||||
@@ -105,7 +105,8 @@ class BIM_PT_object(Panel):
|
||||
row.prop(prop, 'string_value', text='')
|
||||
if 'length' in prop.name.lower() \
|
||||
or 'width' in prop.name.lower() \
|
||||
or 'height' in prop.name.lower():
|
||||
or 'height' in prop.name.lower() \
|
||||
or 'depth' in prop.name.lower():
|
||||
op = row.operator('bim.guess_quantity', icon='IPO_EASE_IN_OUT', text='')
|
||||
op.qto_index = index
|
||||
op.prop_index = index2
|
||||
|
||||
Reference in New Issue
Block a user