Hi @gtk2k, is there a reason why you are using the Primitive API? Primitives are low-level and harder to work with. The Entity API might be a better fit for what you are trying to do.
See this thread for an example of how to construct a plane-shaped Entity.