I created a script to replicate an existing assembly’s sheets and views. In a nutshell, it will take the sheet(s), the view(s) that are placed on the sheet(s) and the location(s) of each view, of a selected assembly and create the same for another assembly. The issue I am having is if the original views have been manually rotated by rotating the crop region, I can’t figure out how to get the rotation angle of those and apply that rotation angle to the newly created views for the second assembly. The script is too large to clip the entire graph, because it has a great deal of custom nodes with large graphs embedded. But the part that creates the new views and places them on the sheets is shown below.
Any direction and help would be greatly appreciated!