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

Mapimport4 problem

4 REPLIES 4
Reply
Message 1 of 5
Anonymous
302 Views, 4 Replies

Mapimport4 problem

I'm trying to import shape files using mapimport4 into autodesk map 5, but I
get "Preprocessings...error encountered" at the command line when I try to
import files with polylines in them. The files are coming out of ArcMAP 8.3
(from an SDE database). It doesnt seem to affect points or polygons. Only
lines/polylines. Anyone encounter this? The data works fine with mapimport
but that wont allow me to bring in just one shape file from a directory
containing many shape files from lisp.

-Anthony
4 REPLIES 4
Message 2 of 5
Anonymous
in reply to: Anonymous

In Map5 just uncheck (to the left of import layer) the shp files that you
don't want to bring in, after you select the folder to import from. If all
else just copy the shp,shx, & dbf files to a new empty folder.

Murph

"Anthony" wrote in message
news:19AFC43112C0CE7FAEBDDA709BB0B62D@in.WebX.maYIadrTaRb...
> I'm trying to import shape files using mapimport4 into autodesk map 5, but
I
> get "Preprocessings...error encountered" at the command line when I try to
> import files with polylines in them. The files are coming out of ArcMAP
8.3
> (from an SDE database). It doesnt seem to affect points or polygons. Only
> lines/polylines. Anyone encounter this? The data works fine with mapimport
> but that wont allow me to bring in just one shape file from a directory
> containing many shape files from lisp.
>
> -Anthony
>
>
Message 3 of 5
Anonymous
in reply to: Anonymous

Opps didn't see the "FROM LISP" I'll rethink my reply.

"Murph" <> wrote in message
> In Map5 just uncheck (to the left of import layer) the shp files that you
> don't want to bring in, after you select the folder to import from. If all
> else just copy the shp,shx, & dbf files to a new empty folder.
>
> Murph
>
> "Anthony" <> wrote in message

> >> > containing many shape files from lisp.
> >
> > -Anthony
> >
> >
>
>
Message 4 of 5
Anonymous
in reply to: Anonymous

Ok lets try it again.
What is happening in MHO is that mapimport4 can not read the new arcMap8.3
format (it did come out after Map5 right?) So it doesn't understand all new
file type. What I would do in lisp is one of two different options.
1. Use a import profile and call that in the lisp -mapimport command. Now if
you are wanting to bring in different shape files with different data that
may not work. Unless you create the ipf file in lisp which might be more
trouble than it's worth.

So option 2

Use vl-copy-file to copy the shp,shx, dbf files to a temp folder. import
then use vl-delete-file to delete the files (shp) after they are import.

Murph

"Anthony" wrote in message
news:19AFC43112C0CE7FAEBDDA709BB0B62D@in.WebX.maYIadrTaRb...
> I'm trying to import shape files using mapimport4 into autodesk map 5, but
I
> get "Preprocessings...error encountered" at the command line when I try to
> import files with polylines in them. The files are coming out of ArcMAP
8.3
> (from an SDE database). It doesnt seem to affect points or polygons. Only
> lines/polylines. Anyone encounter this? The data works fine with mapimport
> but that wont allow me to bring in just one shape file from a directory
> containing many shape files from lisp.
>
> -Anthony
>
>
Message 5 of 5
Anonymous
in reply to: Anonymous

"Murph" wrote in message
news:11D43C6E2C710876BDE2CFDD431C24C1@in.WebX.maYIadrTaRb...
> Ok lets try it again.
> What is happening in MHO is that mapimport4 can not read the new arcMap8.3
> format (it did come out after Map5 right?) So it doesn't understand all
new
> file type. What I would do in lisp is one of two different options.
> 1. Use a import profile and call that in the lisp -mapimport command. Now
if
> you are wanting to bring in different shape files with different data that
> may not work. Unless you create the ipf file in lisp which might be more
> trouble than it's worth.

Yea, that wont work because the IPF file holds the config for all the files
in the directory specified, which in my case, changes all the time. If the
IPF file only contains data for one shape file, the rest are imported with
default settings. Very annoying. This is the least elegant solution at this
point.

> So option 2
>
> Use vl-copy-file to copy the shp,shx, dbf files to a temp folder. import
> then use vl-delete-file to delete the files (shp) after they are import.

This was another option, exporting each request, which consists of many
shape files, to a unique folder. This option is beginning to look better all
the time. Its either this or get ArcToolbox to convert the shape files to
coverages and use our existing coverage import system.

The whole scheme is that the user request the data, a process on another
computer with arcmap installed generates the shape files in the specified
area, and the cad system integrates the shape files into the drawing once
the request is finished processing. Lots of riff-raff to go through....

-A

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

Post to forums  

Autodesk Design & Make Report

”Boost