Ermmm, my pleasure Atook. Btw, with a little slight of hand, e.g. late binding, select / limited use of the CallByName function etc. you can eliminate the need to pen AutoCAD version dependent dlls that still perform well. In advance, I don't have time to detail this, but it is do-able (I have authored dlls that run in AutoCAD 2002 thru 2006). PS: never use the 'End' statment to exit a dll; that would be very very bad.