Most of the time, XP is based off of number of resources and complexity, however sometimes they just throw ya a curve and the XP amount on a schematic seems to defy explanation.
On the official forums you can find "Grinding Guides" that tell you, "make x amount of y until you reach level z". The Structures Trader forum is rampant with these guides.

Generally speaking, you want a schematic with the most resources and fewest mouse clicks. The ideal schematic is the "Gungan Head Statue". It uses 2k ore and 1 k gemstone in two mouse clicks. Unfortunately it was nerfed by moving it to lvl 86.
