TBC Macros and Extensions

 View Only
Expand all | Collapse all

How can I use Trimble Macro SDK in Visual Studio 2019

  • 1.  How can I use Trimble Macro SDK in Visual Studio 2019

    Posted 12-19-2020 00:18

    Hi,

    I just started to work on Trimble Macro SDK.

    I have visual Studio 2019. I also installed Trimble Macro SDK. 

    But I cannot see its template file when I am creating a project for Trimble environment.  

    Please guide me. Thanks.

    Regards,

    Usman



    ------------------------------
    usman Bajwa
    ------------------------------


  • 2.  RE: How can I use Trimble Macro SDK in Visual Studio 2019

    Posted 12-20-2020 10:05

    The macro sdk must be installed after Visual Studio. Try installing macro sdk again.



    ------------------------------
    Gary Lantaff
    ------------------------------



  • 3.  RE: How can I use Trimble Macro SDK in Visual Studio 2019

    Posted 12-21-2020 00:37

    I reinstalled macro sdk. But still I cannot find Trimble template file while creating project.



    ------------------------------
    usman Bajwa
    ------------------------------



  • 4.  RE: How can I use Trimble Macro SDK in Visual Studio 2019

    Posted 12-24-2020 12:00

    The SDK install should have placed the template in the Visual Studio folder in your MyDocuments folder. So first check if the file is in this folder.

    If the file is not there, then you can copy the file from the SDK install folder.



    ------------------------------
    Gary Lantaff
    ------------------------------



  • 5.  RE: How can I use Trimble Macro SDK in Visual Studio 2019

    Posted 12-27-2020 00:29

    Hi,

    The Trimble Macro SDK location after installation:

    Then I placed it in project template folder after changing the name from Macro SDK to TbcMacro:

    But still i cannot see the template file in the Vision 2019 software.

    There is no .vstemplate and .py files in Trimble TBC Macro SDK. 

    I am thankful for your help. I am looking forward for more help from your side.

    thanks again.

    Regards,

    Usman Farooq 



    ------------------------------
    usman Bajwa
    ------------------------------



  • 6.  RE: How can I use Trimble Macro SDK in Visual Studio 2019

    Posted 01-06-2021 10:13
    The install folder you showed was correct. You should not modify or add any files to the Visual Studio install. I would delete the files you copied to the Visual Studio folder.

    Visual Studio template extensions should be placed in your "Documents" folder. The template is a zip file (named "TbcMacros.zip" in this case).
    Located here: C:\Users\<userName>\Documents\Visual Studio 2019\Templates\ProjectTemplates\TbcMacros.zip

    To get going, I would:
    1) Delete files you copied to Visual Studio folder
    2) Uninstall "Trimble Macros SDK"
    3) Download latest version of SDK (I just updated it to match TBC version 5.40 today 1/6/2021)
        http://dl.trimble.com/osg/survey/macros/trimble_macros_sdk_v5.40.msi
    4) Start Visual Studio and create new project. The template for TbcMacros will likely be the last in the list so scroll down to the bottom the of template list.

    Good luck.


    ------------------------------
    Gary Lantaff
    ------------------------------



  • 7.  RE: How can I use Trimble Macro SDK in Visual Studio 2019

    Posted 03-18-2022 08:40
    Hello Gary, 

    I was wondering if this version of Macros SDK is also compatible with VS2022.

    Everything was installed in this order: VS => IronPyton; MacrosSDK.
    The installation was successful: the Macros SDK folder was placed in Program Files/Trimble/...; the zip was placed in the Templates folder in my Documents. However, the template is not showing in VS. I 'tricked' the installation by manually creating the VS2019 path where the zip expects to be installed (successfully) and I've copied the zip to my VS2022 folder.

    Thank you in advance.
    Best regards, 
    Gerben

    ------------------------------
    Gerben Van Ranst
    Application Engineer
    AllTerra Belux
    Melle - Belgium
    ------------------------------



  • 8.  RE: How can I use Trimble Macro SDK in Visual Studio 2019

    Posted 03-18-2022 08:42
    VS2022 is a 64 bit developer tool and is NOT compatible with IronPython. It will run OK but setting breakpoints does not work.

    Best to stay with VS2019 for now.

    ------------------------------
    Gary Lantaff
    ------------------------------