In a program I'm writing, I change the UCS of the drawing. I'm doing it all without commands, so to change the UCS back I have to create one if the current UCS is un-named. If you dump a document, you will see something like ' ; ActiveUCS = AutoCAD: Null object ID ' if the UCS is un-named, and I would like to return it to that, but I can't seem to figure out how to do it. Right now I create a temporary UCS for both the current, and the one I will be using ( if I was smarter, than I would just rotate the items with a transformation matrix, based on the normal of the object I'm selecting ), and then delete them, but I can't delete the one that is current ( which I switch back to, which is the reason I can't delete it ).
Any help is appreciated. The code has been done here before, but didn't work in my situation, so hence the rewrite. Will post when this is figured out, if people don't mind me doing so.
Thanks in advance.