I ran into a problem recently where my import summary had grown to 100s of files because I was building new templates, feature libraries - everything. Lots of testing needed, which included deleting imported JOB files, adjusting a few things and trying again. And again. And again.
Creating a template from the file did not clear the file list, nor did I find a built-in way to do it. My dealer didn't have an answer either.
After lots of time roaming the API, I found it. This is C# code but not hard to figure out. I left the namespace on the important object, found in Trimble.Sdk.Data. It's a snap-in, so you have to find it and cast it to the correct type.
private void ClearImportSummaryFiles()
{
foreach (ISnapIn snapIn in Project)
{
if (!(snapIn is Trimble.Vce.Data.ImportInformation importInformation))
continue;
importInformation.ClearFiles();
}
}
I'm doing this in the template, so there's no danger of removing needed files. If you have an FXL in your template it stays in the Imported Files list.
------------------------------
David Brubacher
------------------------------