How can I dynamically create a model?

hi,
I want to dynamically create a model by programming, how can I do it.
Anybody can provide sample code?
thank u very much.

topic143.html