E3d - foundation modelling macro