I need to create a lattice structure composed of patterned unit cells and completely parameterized by global variables. I used the linear pattern feature to create a plane of unit cells controlled by two global variables, "instances" (number of unit cells along edge) and "lattice_param" (the unit cell edge length). However, solidworks throws an errors saying "the selected features could not be patterned using a geometry pattern" regardless of whether the geometry pattern check box is enabled. I am aware that i could pattern the unit cell as a body and then combine all of them using the combine feature however this prevents the model from being parameterized since the combine feature requires I select all the bodies. Is there anyway to do this?