There have been different approaches to this before, in several threads. Code posted here relied on the projection of an arbitrary component having been verified. It would then apply the projection to all components. The scripts below rely instead on a selection in the Project pane, which I think is more intuitive. The first script, "Assign same projection for folder", assigns the projection of the selected component to all components in the same folder. The second, "Assign same projection for project", assigns the projection of the selected component to all components in the project. The projection of the selected component must have been verified. In both cases there is an option to override other projections that have already been verified, or to leave them as they are (the default). As before, local offsets and scales are not affected. These scripts are easiest to use as add-ins. To use them ad-hoc, you need to run them from their own window, so that a target can be selected in the Project pane. Attachments: Assign same projection for folder.txt Assign same projection for project.txt
|