thanks, Dimitri. I was able to export the .shp using the -export directive. But, as I had indicated in my original post, when running a query, I was not able to get a .shp to output, but, I was able to get a .gpkg. So, something was off there. To add to the confusion, I just ran this command: c:\manifold9\manifoldcmd.exe "c:\temp\delgis\delgis examples.map" -export:"watersheds.geom" -out:"c:\temp\dennis\output\watersheds.shp" that works fine. But, when I attempt to run this command: c:\manifold9\manifoldcmd.exe "c:\temp\delgis\delgis examples.map" -export:"Buildings" -out:"c:\temp\dennis\output\buildings2.shp" I get the "invalid component" error. I even get it with trying to export a .gpkg. So, there is something odd about that component, I think. It exports fine from inside the GUI. Nonetheless, I was able to export a .shp by creating a script like this: Sub Main Set app = Manifold.Application Set db = app.GetDatabaseRoot() text = db.GetProperty("Query", "Text") db.Run(text) db.ExportFile "bmerge", "c:\temp\output\brout.shp" End Sub in this case, I take the query that is working, and extract its text. Then I do a db.Run(text). When that completes, I run a db.ExportFile. So, I still don't know why the -out: does not work for .shp when I've run it, but does work with the .ExportFile, the GUI, and a .gpkg.
|