Generation of $J$-Grassmannians of buildings of type $A_n$ and $D_n$ with $J$ a non-connected set of types