Set newVport=acadDoc.Viewports.Add("NEWVPORT")
acadDoc.ActiveViewport=newVport
They(cmds) used to work fine but after I opened the same dwg to run my VB
code for several times , my appln hangs up with the mentioned problem.
Is it becoz I should not use the same dwg or I should end my appln properly
after I run my VB code.
Thanks for any help
Lim Siew Keng wrote in message <01bd5bca$cae700e0$3bc415a5@lim>...