A Solidworks macro with user interface window to calculate transformation matrices between coordinate systems.