AutoCAD Map 3D Forum
Welcome to Autodesk’s AutoCAD Map 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Map 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

-mapimport mutliple shp

5 REPLIES 5
Reply
Message 1 of 6
Anonymous
325 Views, 5 Replies

-mapimport mutliple shp

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

5 REPLIES 5
Message 2 of 6
WarrenGeissler
in reply to: Anonymous

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)

Message 3 of 6
Anonymous
in reply to: WarrenGeissler

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...

Message 4 of 6
Barzdil
in reply to: Anonymous

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.

Message 5 of 6
WarrenGeissler
in reply to: Anonymous

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)

Message 6 of 6
Barzdil
in reply to: WarrenGeissler

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.. 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost