Hi everyone,
I'm on TBC 2025.21 with a full Survey Advanced license. No custom macros (including the tiny TestMacro.py below) are appearing in the F12 All Commands pane.
I have:
- Placed the .py file(s) directly in C:\ProgramData\Trimble\MacroCommands3\
- Given "Users" Full Control permissions on the folder
- Deleted MacroCommands3.dict multiple times
- Restarted TBC
- Run "Set Ribbon Tabs → Reset to Defaults"
AllTerra NZ support also tried the macro on their end and couldn't get it to load either. They suggested posting here.
Test macro I tried (doesn't appear):
import clr
for asm in ['Trimble.Vce.Core']:
try: clr.AddReference(asm)
except: pass
from Trimble.Vce.Core import *
class TestMacro:
def __init__(self, project): self.currentProject = project
def Execute(self):
print("✅ TEST MACRO RAN SUCCESSFULLY!")
Client.ShowMessage("Test macro worked!", "Success")
def CreateCommand(project):
return TestMacro(project)
I'm trying to achieve a very simple task: loop through all Total Station observations and write the Azimuth (degrees) and Horizontal Distance as User Attributes on the foresight point.
Would really appreciate any help. Thanks!
------------------------------
Mainland Surveying
------------------------------