Hello !
I want to import a lot of shp file into a dwg with a scr script.
For one file, I use :
-mapimport shp c:\MyFolder\MyFile01.shp
and it's ok
But for 2 files, I don't know how to write the files parametre...
I used :
-mapimport shp "c:\MyFolder\MyFile01.shp c:\MyFolder\MyFile02.shp" ==> don't work c:\MyFolder\MyFile01.shp;c:\MyFolder\MyFile02.shp ==> don't work "c:\MyFolder\ MyFile01.shp MyFile02.shp" ==> don't work
An idea ?
Thanks
Use a COMMA (,) between filenames. Never use a space in a script as it will be interpreted as an ENTER.
c:\MyFolder\MyFile01.shp,c:\MyFolder\MyFile02.shp
Warren Geissler
Drafting Manager Denver Water
_____________________________________________
Please ACCEPT AS SOLUTON if this works
(...and doesn't melt your computer or cause Armageddon)
Commande: -mapimport Entrer type de fichier à importer ou ? pour obtenir la liste <ARCINFO>:shp Entrer nom du fichier à importer <C:\Users\staub\Documents>:Y:\Ressources\Metier\214-SigTopo\Reseaux\Outils\DataPostgis\CDE_A_BASSIN.shp,Y:\Ressources\Metier\214-SigTopo\Reseaux\Outils\DataPostgis\CDE_A_BRANCHEMENT.shp Mssage #0: Le répertoire 'Y:\Ressources\Metier\214-SigTopo\Reseaux\Outils\DataPostgis\CDE_A_BASSIN.shp,Y:\Ressources\Metier\214-SigTopo\Reseaux\Outils\' n'existe pas. Code du message: 1.
I get an error...
cmddia 0 -Mapimport shp
c:\MyFolder\MyFile01.shp,c:\MyFolder\MyFile02.shp
n p
"n" - means, that you don't want to import any profile.
I believe the issue you are running into is with the number of characters per line in the script. I remember an issue posted on the forums somewhere concerning that but I can't find it. Start by moving the files into a smaller path first to see if that works.
Warren Geissler
Drafting Manager Denver Water
_____________________________________________
Please ACCEPT AS SOLUTON if this works
(...and doesn't melt your computer or cause Armageddon)
Very realistic Warren. Just like "Mapiinsert" command doesn't work with a long directory. Toolpalettes also has the"BUG" and can't save very long command macros..