CompileError: Access to the path is denied when trying to run a macro
Problem: When I try to run a macro I get a following error message: "Access to the path is denied." This occurred when launching macros such as "SwapHandles", "CreateSurfaceView" and "Directory Browser".
Cause: The problem may be caused by an incomplete installation of Tekla Structures. Please make sure you always have full administrator credentials during the installation of Tekla Structures.
Solution: Check that you have user access and execute rights set to the folder and files where the macro is located. For example SwapHandles and CreateSurfaceView are located in C:\ProgramData\Tekla Structures\<version>\Environments\common\macros\modeling\ (versions up to 2018i) or C:\ProgramData\Trimble\Tekla Structures\<version>\Environments\common\macros\modeling\ (versions 2019 and later).
If you do not have proper rights to the folders and files related to the problematic macros, you may need to uninstall and reinstall Tekla Structures using administrator credentials to fix the issue. If needed, please ask your local IT support for assistance.
Please refer to Microsoft Windows documentation for more details regarding file and folder permissions.