Small script to print PricedBillOfQuantities to PDF
Hello, still a work in progress, but i'm drafting a small script to print IfcCostSchedules to pdf in the conventional way. The script is based on fpdf library. If you want to try it, you should install it in the blender python.
https://github.com/carlopav/IfcScripts/blob/main/ExportIfcCostSchedule.py
Feel free to try, modify or do whatever. There is a bit of Claude on the fpdf library integration.
Here a little preview of the output:
Tagged:
Comments
Very useful and clean output, thanks!
Script updatated with cover page :)
To fill the "n°, a, b, c/w" columns we could evaluate the Formula field in the IfcQuantity:

In this example the Formula was filled with this string:
2*1*1*8
I was also thinking to add a check to verify if the output of the formula evaluation was consistent with the value. What do you think about this usage of the available attributes of the cost quantities?
Here you have the link to the PR: https://github.com/IfcOpenShell/IfcOpenShell/pull/6860.
Thanks @Massimo and @steverugi for the discussion, @aothms, @tibicen, @Andrej730 for the support!
PR has been merged thanks to @Andrej730 !


If you want to test it you have to install typst from
Quality and Coordination -> Debug -> Pip Install
:And the function will be available here:
@carlopav awesome!!