EMBED_SCRIPT in DIR_LOOP command

Hi,
I want to embed simple script in another one which is using DIR_LOOP command, I wrote a simple script:
I want to embed simple script in another one which is using DIR_LOOP command, I wrote a simple script:
GLOBAL_MAPPER_SCRIPT VERSION=1.00
DIR_LOOP_START DIRECTORY="C:\temp" FILENAME_MASKS="*.osm"
IMPORT FILENAME="%FNAME_W_DIR%"
EMBED_SCRIPT FILENAME="C:\temp\points.gms"
EXPORT_PACKAGE FILENAME="%DIR%%FNAME_WO_EXT%_points.gmp" KEEP_NATIVE_PROJECTION=YES
UNLOAD_ALL
DIR_LOOP_END
Here is 'point.gms' script:
Regards
Wojtek
GMv16.2.5
Here is 'point.gms' script:
GLOBAL_MAPPER_SCRIPT VERSION=1.00
EDIT_VECTOR MOVE_TO_NEW_LAYER=YES NEW_LAYER_NAME="points" SHAPE_TYPE=POINTS
SET_LAYER_OPTIONS FILENAME="*.osm" HIDDEN=YES
but this is not working, GM says:
What I am doing wrong?but this is not working, GM says:
Starting loop over all files in directory...
Importing file <C:\temp\Portugal.osm>...
Editing vector features...
Updated 34,375 features.
Updating loaded layer options...
ERROR: Missing DIR_LOOP_END to match DIR_LOOP_START.
Exporting data to Global Mapper Package file <%DIR%%FNAME_WO_EXT%_points.gmp>...
Removed all loaded overlays.
ERROR: No matching DIR_LOOP_START for DIR_LOOP_END
Regards
Wojtek
GMv16.2.5
Best Answer
-
bmg_bob Global Mapper Programmer Posts: 2,233
I recommend getting the latest release of Global Mapper 16 (you will need to scroll down the page a bit). We made some recent changes relating to the EMBED_SCRIPT command.
If the problem persists in the latest release, then your best bet is to send an e-mail describing your workflow and the results (error message, etc.), with a copy of your script and sample data, to Blue Marble Geographics support (geohelp@bluemarblegeo.com). This will ensure that the support team sees the problem and can provide a timely response. Thank you.