Luis,
First off, Thanks for posting.
Yours does work, and I can get the xdata with my function after. Do you remember why you set it up that way? Is it required by AutoCAD? I have looked through the help files, and have not had success with finding what I'm looking for, which is mostly my fault, as I don't know exactly what that may be.
My code seems to work if you only enter one bit of information, but if you enter information for both prompts, then it won't attach any xdata to the object.
BTW,
There is one function to get xdata... in the www.acadx.com site
HTH
I just looked at their code, and it is close to what I have already, and it seems mine works okay because it returned the xdata that your routine attached. Thanks for the link though.
I will continue to try and see what I'm doing wrong. I hope I don't have to set it up the way you did. I'm hoping that it can be a little more flexible.