TBC Macros and Extensions

 View Only
Expand all | Collapse all

Trimble not creating .dict when loading macro

  • 1.  Trimble not creating .dict when loading macro

    Posted yesterday

    Hey there,

    I have created a macro and published it to the MacroCommand3 from VS and within the folder created another folder that will contain the .py file. But every time I load TBC it pulls an error saying it can't create or locate a .dict file then tells me to create an empty file I had gpt write me a PowerShell script to create one and it still doesn't work not sure if I need to change authority rights on the file directory.

    Any help will be much appreciated, cheers.

    - Dom



    ------------------------------
    Domenic Calafiore
    ------------------------------


  • 2.  RE: Trimble not creating .dict when loading macro

    Posted yesterday

    Hi Dom,

    You are correct, TBC is having issues with the permissions on the sub-folder that you created.

    If you created the sub-folder directly within MacroCommands3, it will inherit the MacroCommands3 permissions - which don't let you (or TBC running as you) create new files (unless you run TBC as Administrator? maybe that works...)

    I would:

    1. Create a folder on your Desktop (this will have permissions that let you add files/folders to it)
    2. Drag the folder into MacroCommands3, it will prompt you to sign in as Administrator

    If you don't have Administrator rights, you may need help with #2.

    Another location (besides your Desktop) is your Temp folder, my path looks like this C:\Users\<myUserName>\AppData\Local\Temp

    My extension command installers use this process - they create folders in Temp (creating them as you with your permissions) and then move them into MacroCommands3.  Because the installers move folders into MacroCommands3, you have to run them as Administrator (the first time).

    Hope that helps, good luck & have fun!



    ------------------------------
    Quan Mueller
    Revenant Solutions | TBC Extension Developer
    Superuser Program | superuser@revenantsolutions.com
    ------------------------------



  • 3.  RE: Trimble not creating .dict when loading macro

    Posted yesterday

    Hi Dom,

    this is a known "issue" as the MacroCommands3 is read-only after TBC installation (v5.90 or newer)as default, while versions pre v5.80 used MacroCommands and not read-only.

    You can have a look at our online help where we explain it at the very top (PREVIOUS STEPS) and indicate how to set the folder "writable" again:

    https://tbc-buildings.com/help/25.02/index_en.html

    Regards,

    Fernando



    ------------------------------
    Fernando Calvo
    calvo@calvo-geospatial.com
    ------------------------------