TBC Macros and Extensions

 View Only

Updated TBC Macro SDK for version 5.50

By Gary Lantaff posted 06-11-2021 18:24

  
The following link will download the msi package for the macro sdk updated to work with version 5.50.

https://dl.trimble.com/osg/survey/macros/trimble_macros_sdk_v5.50.msi
,
In version 5.50, some of the assemblies were renamed (usually Trimble.Vce.xxx to Trimble.Sdk.xxx). In order for the macro to work with version 5.50, you need to take into account the assembly name change.

One of the assemblies renamed was "Trimble.Vce.Interfaces". That assembly was referenced by the project file (*.pyproj). If you have older solutions already defined, you should use an editor and update the Trimble.Vce.Interfaces to the new name ("Trimble.Sdk.Interfaces")

Many of the common assemblies are now "pre-referenced". That is, they are referenced on startup before a macro is run. See following list for "pre-referenced assemblies". Adding the reference a second time does no harm and has little effect on runtime.

clr.AddReference("Trimble.Sdk") # new for version 5.50
clr.AddReference("Trimble.Sdk.DiskIO")
clr.AddReference("Trimble.Sdk.Core")
clr.AddReference("Trimble.Sdk.Alignment")
clr.AddReference("Trimble.Sdk.ForeignCad")
clr.AddReference("Trimble.Sdk.Construction")
clr.AddReference("Trimble.Sdk.Geometry")
clr.AddReference("Trimble.Sdk.Units")
clr.AddReference("Trimble.Sdk.Interfaces")
clr.AddReference("Trimble.Sdk.Surface")
clr.AddReference("Trimble.Sdk.Data")
clr.AddReference("Trimble.Sdk.RawData")
clr.AddReference("Trimble.Sdk.Coordinates")
clr.AddReference("Trimble.Sdk.Features")
clr.AddReference("Trimble.Sdk.FeatureDefinitions")
clr.AddReference("Trimble.Sdk.COGO")
clr.AddReference("Trimble.Sdk.Geodetic")
clr.AddReference("Trimble.Sdk.Scanning")
clr.AddReference("Trimble.Vce.ViewModel")

The attached py file shows how you can test for the existence of a 5.50 assembly name and if not found, assume the old file names.

CommonInclude.py
1 comment
134 views

Permalink