How to render a model with python totally?

Dear All,
I want to render a model with my own settings by using python scripts totally.
Would you please give me one simple example code?
I am new to rhino.python and get muddleheaded with the api doc.
Thank you all!

Hi @shmilhong,

Which settings do you want to define ?

the easiest is to just script the Render command eg:

import rhinoscriptsyntax as rs
rs.Command("! _Render", True)

_
c.