TBC Macros and Extensions1

 View Only

Trimble Macros SDK.msi. Updated for TBC version 5.40 

01-28-2020 16:55

This SDK should be installed after installing Visual Studio.

If you upgrade from Visual Studio 2017 to 2019, uninstall the SDK and install again in order to have project template placed in the correct location for VS 2019.

 

Click on the link below to download the SDK.

 
https://dl.trimble.com/osg/survey/macros/trimble_macros_sdk_v5.40.msi

Statistics
0 Favorited
129 Views
0 Files
0 Shares
0 Downloads

Comments

06-10-2021 14:55

After looking at the 5.50 sample macros it seems that the majority of modules is now automatically referenced.
Now they have another try in the referencing  part of the macros.
If it can't reference the one new place then do it the old way.
try:
    clr.AddReference("Trimble.Sdk") # In version 5.50, model assemblies are "pre-referenced"
except:
    clr.AddReference ("Trimble.DiskIO")
    clr.AddReference ("Trimble.Vce.Alignment")
    clr.AddReference ("Trimble.Vce.Collections")
    clr.AddReference ("Trimble.Vce.Coordinates")
    clr.AddReference ("Trimble.Vce.Core")
    clr.AddReference ("Trimble.Vce.Data")
    clr.AddReference ("Trimble.Vce.Data.COGO")
    clr.AddReference ("Trimble.Vce.Data.Construction")
    clr.AddReference ("Trimble.Vce.Data.Scanning")
    clr.AddReference ("Trimble.Vce.Data.RawData")
    clr.AddReference ("Trimble.Vce.Data.RXL")
​

But they also must have renamed moved some modules/functions.
I haven't tested in depth yet but the following ones throw an exception
from Trimble.Vce.Collections import Point3DArray, DynArray
from Trimble.Vce.Data.RXL import RXLAlignmentExporter, FileWriter as RxlFileWriter, Versions as RxlVersions
from Trimble.Vce.TTMetrics import StrokeFont, StrokeFontManager


I'd really need the SDK and the ObjectBrowser in VS to find and fix them.

From now on I'll keep one comprehensive reference/import list. That will load way too many imports during macro start, but it will make it easier in the future to just copy and paste the fixed block into all file headers, instead of editing each file every time.

Maybe there is even a way to have that import list in a separate file and all macros just pointing to that one. Would minimize bug fixing to just one single file in the future.

06-09-2021 00:02

Hi,

I have the same issue, none of my macros and almost all other free macros  but ListObjects don´t load with different error messages.

It would be highly appreciated if you can give us some information how to fix these issues.

Thanks a lot.

Regards,
Fernando

06-07-2021 23:30

Hi Gary,
is there a new SDK for 5.50 already?

I haven't had time to look into macros the last couple of weeks and I haven't installed 5.5 yet, but I've been told that all my macros stopped working with a reference error to "Trimble.Vce.Core". What did they change this time and is there an easy way to fix it?

01-30-2020 19:52

Thanks Gary

Related Entries and Links

No Related Resource entered.