Currently, I’m creating a button in Workbench to execute a specific script.
The script itself runs successfully (it creates a Static Structural analysis), but the Log window displays the message:
“Extension is not properly installed” (as shown in Figure 2).
I’m not sure which part of the current code is causing this error.
The attached ZIP file contains the current ACT extension (location shown in Figure 1).
Figure 1: Installation location of the ACT extension

Figure 2: Error message shown in the Log window

The attached main.py is a modified version of the script, which creates a Transient Structural analysis based on a Modal project named "auto" (as shown in Figure 3). It also sets parameters in the Transient analysis.
I’ve noticed that when this code is executed directly in the ACT Console within Workbench, it runs successfully (as shown in Figure 4).
However, if the same code is triggered by clicking the custom button, an error occurs (as shown in Figure 5).
The error seems to happen when sending commands to Mechanical (as shown in Figure 6).
Figure 3: Project Tree After Script Execution

Figure 4: Successful Execution in ACT Console

Figure 5: Error Message After Clicking Custom Button

Figure 6: Mechanical Script Execution Error

I would appreciate your help in troubleshooting this issue. Thank you in advance!