OpenSCAD
the MCAD project contains a gridbeam.scad library with solid and hollow beams of configurable size and orientation, hole-aligned translation functions, and flat surfaces with and without notched corners.
FreeCAD
A FreeCAD gridbeam library is currently under development.
https://replimat.org/cgi/fossil.cgi/index