This script works exectly as autocad rotate (and 3d rotate) command.
It rotetes selected objects based on 3 points.
Points are picked up in that order:
1. pivot point
2. reference point
3. target point

Script
By furczak · 2017-03-26
No reports yet for the available releases.
Choose the 3ds Max version you use. For example, selecting 2020 puts direct matches for 2020 first, followed by listings that say a supported version or newer.
Scripts that only mention an older version can still appear as “2020 unconfirmed.” Listings that rule out 2020 are excluded. Use “Show scripts with unconfirmed compatibility” to also see listings without a clear match.
Community reports show what worked for members on a specific release. They’re separate from the listing’s compatibility claims and don’t change the filter.
Tags: reference rotation 3ds max transform align modeling object 2d 3d as autocad command
This script works exectly as autocad rotate (and 3d rotate) command.
It rotetes selected objects based on 3 points.
Points are picked up in that order:
1. pivot point
2. reference point
3. target point

Z axis fixed version of script rotates object only in XY surface. It is recomened to use always that function, if only possible. Rotating objects in 3d space needs more attention and accurate scenes.
To install:
1. run script
2. choose Customize/Customize User Interface
3. choose prefered menu type
4. find script (RotateRef and RotateRefZ) under Retouchaid category to add