Agreed the AI is getting better and can produce code that does what you expect. 1 year ago, it was absolute useless.
But it still creates lots of rather garbage code, burning energy in the process.
I wouldn't call it intelligence. It uses a sledgehammer method of puzzling together code snippets it found online, in a statistically best fit order and shuffling them around until they deliver a result that is acceptable.
All it basically needs is,
from Trimble.Vce.Data import MediaFolderContainer
from Trimble.Vce.Core import GlobalSelection
# clear the global selection
GlobalSelection.Clear()
selectserials = []
for mf in MediaFolderContainer.ProvideMediaFolderContainer(self.currentProject):
#selectserials.Add(mf.SerialNumber) # if you want to add the media files to the selection list
selectserials.Add(mf.AnchoringObject.SerialNumber) # add the point itself to the selection list
# apply the list we compiled to global selection
GlobalSelection.Items(self.currentProject).Set(selectserials)
------------------------------
Ronny Schneider
------------------------------
Original Message:
Sent: 03-17-2026 07:28
From: Scott Koffarnus
Subject: Selecting points with media file
Hello,
I created a macro to select all points with a photo attached to them. I know this has been brought up before. When you run this macro it will select all the points that have media attached to the point. You can save that as a selection set or just export a Google Earth file. We are attaching the photos in the field using Trimble Access and in the office in TBC. I've attached a .zip file that contains the files. Here's the path to save these files to: C:\ProgramData\Trimble\MacroCommands3
I used ChatGPT to create this. It took about 2 hours. It was the first time trying anything like this. I would encourage others to attempt using AI to create macros too. I eventually uploaded the ListProjectObjects macro files (found in \MacroCommands3\Trimble) to ChatGPT and I think that helped the process a lot. ChatGPT spit out some code and I had no idea what to do with it, so I just asked ChatGPT. It told me to open Notepad and copy the code into there and what the file name should be. So, if you try this yourself and get stuck, just ask the AI for help. Initially, there was lot of trial and error before we got anything to start to work. Don't expect it to be perfect right away, but like I said this took 2 hours and I have never coded before.
Hope this helps some others out there that have been asking for this too.
------------------------------
Scott Koffarnus
------------------------------