TBC Macros and Extensions

 View Only

TML - SurfaceToGrid

By Gary Lantaff posted 11-29-2018 11:01

  

This TML will compute grid locations from a specified surface and write either (or both) an *.xyz file or a *.csv file. This can be useful for reporting purposes or to reduce the number of points in a surface.

 

An optional boundary can be specified. In this case, only grid points located in the boundary are computed. If an *.xyz file is created, the user is giving the option to import that as a point cloud. If a simple file name is supplied (no path defined), the file will be created in the project subfolder.

 

 

An option to compute the grid based on an alignment is available. When this is checked, the UI changes a bit. The grid locations are computed based on the station and offset to the defined alignment.

 

There is also an option to compute delta elevation between the specified surface and another reference surface. In this case, the computed elevation is the difference between the two surfaces. When computing the delta elevation between the two surfaces, you can restrict the points to elevations that fall outside the defined tolerances. When using this option, a rough volume is reported (just using average grid size time delta elevation)

 



Attachment(s)

3 comments
52 views

Permalink

Comments

07-05-2021 17:31

I am new to Macros.  I saved the contents of the .zip to the C:\ProgramData\Trimble\MacroCommands\Trimble folder, but I don't see Surface to Grid as a Command in the All Commands Line?  How do I launch this tool?  I have Survey Advanced and can see the stock macros.  Thanks in advance.

02-10-2020 08:24

First, make sure you have latest version, Run macro TmlStatus to check.

 

What locale is your computer set to. The macro should be using the "Region Settings - List separator" value.

The "List separator" and the "Decimal symbol" should not be the same.

 

02-04-2020 03:26

Hello, when using this TML the export file uses a point as decimal symbol while also using it as a separation indicator between columns. For example:

125975.70394.475464.86010.0.00000

This makes it difficult to import the file back in to TBC, is there a way to resolve this issue?