# This template was created by Joshua Margolin and # is posted for you to use free of charge. # October 99 # # This template exports an FD Grid from a Grid layer to an ASCII file # as a set of contours. Each block is exported as a 4 vertex contour # Values of the block parameters are also exported. # This file can be imported into Argus ONE Information layers # # Instructions for using the template are at the end of this file # Redirect output to: $BaseName$ # Loop over columns and rows to export the 4 corner of the blocks # 5 are written to the file because the close contour structure # is identified by the repition of the first vertex as the last. Loop for: Columns Loop for: Rows Start a new line # Export the number of verteices + 1 = 5 Export expression: 5 [G0] # loop for block and layer parameters and exports them as the contours values Loop for: Block Parameters Export expression: ;CalcAtBlock($Column$+1,$Row$+1,$Parameter$) [G0] End loop End line Start a new line Export expression: NthColumnPos($Column$); [G0] Export expression: NthRowPos($Row$) [G0] End line Start a new line Export expression: NthColumnPos($Column$); [G0] Export expression: NthRowPos($Row$ + 1) [G0] End line Start a new line Export expression: NthColumnPos($Column$ + 1); [G0] Export expression: NthRowPos($Row$ + 1) [G0] End line Start a new line Export expression: NthColumnPos($Column$ + 1); [G0] Export expression: NthRowPos($Row$) [G0] End line Start a new line Export expression: NthColumnPos($Column$); [G0] Export expression: NthRowPos($Row$) [G0] End line Start a new line End line End loop End loop End file # # Instructions for using the template # # To try this template: # 1. Activate a Grid type layer # 2. Create a Grid and add parameters if you wish # 3. From the File Menu Select Edit Template to open the Export Template Dialog: # 4. Click the Load button to load this template # 5. Close the Export Dialog # 6. Export the Grid using the By Template menu # 7. Switch to an Info layer and make sure it has the same number of parameters # as the number fo parmaters you had inthe grid # 8. !!!!!!! Important, TURN "ALLOW INTERSECTION ON" # 9. From the File Menu choose Import Contours->Text File and select the file you exported before #10. All the contours and their values will be imported.