Another more general comment on your code, has to do
with Disposing of objects obtained through transactions.
I see quite a bit of that in code posted here and just
wanted to point out that doing it is pointless, and only
serves to needlessly complicate your code.
In general, any objects obtained through a transaction,
do not need to be explicitly Disposed.
That's because disposing the transaction you got the
objects from, has the same effect as disposing of the
individual objects themselves.
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD 2008
Supporting AutoCAD 2000 through 2008
http://www.acadxtabs.com
wrote in message news:5583997@discussion.autodesk.com...
In case you wanted to see some sample code, here it is.