Scale viewports with VB

I'm using vb to customize icad v5. I'd like to scale, rotate and change the centerpoint of a viewport with vb. So I'm looking for a small sample module that does the trick.Rob