Umm, just 2 clarify on what I posted earlier (my edit time expired):
I'm not knocking you contribution, I think it's great that you were able to work this out, and I would use it if I really needed it. I'm just saying that if I were programming this sort of stuff myself, it would be easier to use the acknex.dll functions. It's mostly a matter of skill level.