How can I find the angle rotation between a UCS and WCS?
How generalized do you want the answer? It can get relatively complex.
For a simple case where the current ucs has only a rotation is about the z-axis, this would work:
(angle (trans '(0 0 0) 1 0) (trans '(1 0 0) 1 0))
It would return the rotation of the z axis in radians.
If multiple rotations around various axes are present, it gets complicated.
I have an issue with 3rd party objects that refuse to stretch... I think it might have something to do with what may actually be a bug in AutoCAD (not the 3rd party software)
Think through the following - then try it.
(See the attached)
No, they won't necessarily be the same. There is a roundoff involved. Limit of accuracy is 14 significant figures. When testing for equality, you need to add a fuzz factor. -1.4...E-14 is for all intents and purposes equal to 0.