No problem, tough you can be far more flexible with polygons just copy A few cubes and merge their points or build a few nurbs surfaces with lofts.
CODE
for ($lattice in ls -sl -dag -et lattice
)
{
$s=getAttr ($lattice+".sd")
;
$t=getAttr ($lattice+".td")
;
$u=getAttr ($lattice+".ud")
;
for ($si=0;$si<$s;$si++)
for ($ti=0;$ti<$t;$ti++)
for ($ui=0;$ui<$u;$ui++)
{
$start=(pointPosition ($lattice+".pt["+$si+"]["+$ti+"]["+$ui+"]")
);
if ($si+1<$s)
{
$nxt=(pointPosition ($lattice+".pt["+($si+1)+"]["+$ti+"]["+$ui+"]")
);
curve -d 1 -p ($start[0]) ($start[1]) ($start[2]) -p ($nxt[0]) ($nxt[1]) ($nxt[2]) -k 0 -k 1;
}
if ($ti+1<$t)
{
$nxt=(pointPosition ($lattice+".pt["+$si+"]["+($ti+1)+"]["+$ui+"]")
);
curve -d 1 -p ($start[0]) ($start[1]) ($start[2]) -p ($nxt[0]) ($nxt[1]) ($nxt[2]) -k 0 -k 1;
}
if ($ui+1<$u)
{
$nxt=(pointPosition ($lattice+".pt["+$si+"]["+$ti+"]["+($ui+1)+"]")
);
curve -d 1 -p ($start[0]) ($start[1]) ($start[2]) -p ($nxt[0]) ($nxt[1]) ($nxt[2]) -k 0 -k 1;
}
}
}
select laticces and fire away.