Gary Lantaff

TML - ConvertToDll

Blog Post created by Gary Lantaff on Oct 17, 2018

This macro can be used to compile a TML macro into a DLL. A compiled macro will have an extension of *.pydll.

 

A compiled DLL still needs access to the xaml file (if used) so include that if sending your TML to other users. See sample macro "QuickLine.py" for sample of how to embed the xaml source into the python source (so you would only need to send the pydll file)

 

TBC will find macros (the *.py files) if the file is located in the folder C:\ProgramData\Trimble\MacroCommands or any folder below that. This makes it convenient to place all the macros from one source (user developed, 3rd parties, Trimble) in separate locations. This macro is best placed in the top level folder (C:\ProgramData\Trimble\MacroCommands) as it searches for macros to convert from its location and sub-folders from there.

 

Just check the name of the macro you want converted into a DLL. This macro should be run before any other macro is executed. (If you have run a DLL macro, you can't use this command to update the DLL untill TBC is restarted)

 

Attachments

Outcomes