Download the latest version of IronPython from http://ironpython.NET/download/.
Run the MSI file to start the installation wizard. Accept the default settings to install IronPython.
Download the latest version of Visual Studio Community from https://www.visualstudio.com/free-developer-offers/.
Run the EXE file.
On the Workloads screen, select these options:
Leave the default Location as is, and Click Install.
Once installed, close the installer and Visual Studio.
from the TrimbleBusiness Center Macros and Extensions forum.
Create a Python project that can take advantage of Intellisense (intelligent code completion). Intellisense is "Intelligent code completion, a context-aware code completion feature in some programming environments that speeds up the process of coding applications by reducing typos and other common mistakes."
Note: At this time, Python Intellisense only works for x86/32-bit apps/version of Trimble Business Center.
Select File > New > Project.
Select Python > TbcMacros.
Enter a project name.
For the Location, browse to C:\ProgramData\Trimble\MacroCommands, and click Select Folder.
If you are installing a newer version of VS than 2019, the SDK wont copy the template file into the Templates folder in Documents. You need to use VS 2019 currently.
Thanks Gary,
Previously I've followed the instructions from the main article which say IronPyton -> VS -> Macros SDK.
I've uninstalled everything and started from the scratch, and now I can see TbcMacros in VS Templates. Time to move to step no. 03!
There is no longer a need for the reg "fix". You should be able to get VS 2019 working by doing a few things:
Install VS 2019 and select the python support (which you have likely done) You should install VS first!
Download and install the IronPython install package (should find an install file named IronPython-2.7.9.msi)
Download and install the macro SDK. (https://community.trimble.com/docs/DOC-31769-trimble-macros-sdkmsi-updated-for-vs-2019)
The macro SDK does two things.
1) It installs 32 bit TBC dlls in the C:\Program Files (x86)\Trimble\Macros SDK folder. You don't actually need this it just make using the editor easier.
2) It installs a Visual Studio "template" in your documents folder (….\Documents\Visual Studio 2019\Templates\ProjectTemplates)
The template file (it's a zip file) should be used when creating your VS project as that sets some paths and debug targets. Again, not required but just makes it easy.
Hi,
Can't get my copy of VS 2019 to work with TbcMacros.zip.
Where can I find "IronPython 2.78 fix.reg"?
I tried to search for it on the forum, but the only search result is the page that tells me to search for it...