@_Tharwat wrote:
Hint: layer name "0" can not be renamed so the routine will exit with error.
That would be "0" [the numeral, not the letter], but yes. I find, unexpectedly, that the DEFPOINTS Layer can be Renamed, which I can only imagine could cause problems -- if I then draw another Dimension, it creates DEFPOINTS again, so there can be more than one Layer with Dimension DEFinition POINTS on it. And the Renamed one can then be set to Plot.
So if there's any likelihood that the User would select something on either of those two Layers, the routine can be amended to forbid that.
Kent Cooper, AIA