Trying to see if it is possible to keep the database inside the drawing instead of outside.
Why ?
1- I did a speed test for writing 1000 records (each record 9 fields). It was so fast inside autocad .
2- If I go with external database, If users want to transfer files to each other, They have to transfer 2 files. One "dwg" and one "MDB".
That doesn't answer the question.
Why do you want an internal dictionary ?
Please consider this :
How will you transfer the information to the shop floor ?
Why do you want a database ?
At what stage in the drawing design will the data extracted from the drawing be usable in any real manner?
How often is each profile likely be changed?
If you analyse your data is it generally several profiles with the specific end conditions repeated many times for varying lengths ?
If you want an external database it's data can be updated at any time from the drawing.
//--------
Because you have not provided sufficient information to indicate to anyone here what your real intention is you are making it VERY difficult for anyone to actually help in any way other than teach you programming.
... also, you seem to be jumping all over the place with your testing and code snips.