You need to get your yellow "tabian bahn" (house registration) book first, a process which, as Steve187 says above, seems to differ in ease according to where you are. The starting point will be your local amphur/district office. Once you have the book the ID card is just a formality.