How to extract IFC Quantity Volume?

Hello,

I’m working on a script to extract the volume of different entities from an IFC file. I have noticed that many elements have a IFCQUANTITYVOLUME tag. For example,

#2151= IFCQUANTITYVOLUME('NetVolume',$,$,0.008);
#2149= IFCCOLUMN('2LQd6yOXH6SAGuPcf4_gAc',#46,'Bollard','PRMD288.2*288.2-252.6*252.6','PRMD288.2*288.2-252.6*252.6',#2146,#2148,'ID956a71bc-6214-4670-a438-666a44faa2a6');
#2153= IFCELEMENTQUANTITY('05YLa8qLT0jRfezs39dkbj',#5,'BaseQuantities',$,$,(#914,#2150,#2151,#2152));
#85028= IFCRELDEFINESBYPROPERTIES('3YNb3INP5F3gsznB$kn9mI',#5,$,$,(#2149),#2153);

These quantities are from tekla.

How should I extract this IFC Quantity Volume from the entity? Thank you for help!

Hi Yash,

I’ve attached a script showing a suggested method for extracting a volume quantity from an IFC file from tekla.
Let me know if this helps or not.

Cheers,

Jon

210720 find quantity.gh (11.0 KB)

1 Like

Hi jonm,

It worked! Thank you very much.

Kind regards,
Yash