Mapexport command not creating *.sbn and *.sbx files.

Mapexport command not creating *.sbn and *.sbx files.

Anonymous
Not applicable
1,854 Views
7 Replies
Message 1 of 8

Mapexport command not creating *.sbn and *.sbx files.

Anonymous
Not applicable

I had created shape files a few weeks ago for a project we were working on using the mapexport command.  When I created the shape files the following file extensions were created: *.cpg, *.dbf, *.idx, *.prj, *.sbn and *.sbx.  My hard drive decided to crash a few days after and it had to be replaced.  After having the hard drive replaced, I have tried to create shape files and all the file extensions come in except for the *.sbn and *.sbx.  When we attempt to import these into ESRI, it gives an error message and does not load the shape files.  Do these missing file extensions have anything to do with this issue?  If so, how can this be fixed?  If not, what may be causing this problem?

0 Likes
1,855 Views
7 Replies
Replies (7)
Message 2 of 8

Pointdump
Consultant
Consultant

Bizzy,

Please read <<<This Post>>> from @WarrenGeissler.

Dave

Dave Stoll
Las Vegas, Nevada

EESignature

64GB DDR4 2400MHz ECC SoDIMM / 1TB SSD
NVIDIA Quadro P5000 16GB
Windows 10 Pro 64 / Civil 3D 2025
0 Likes
Message 3 of 8

Anonymous
Not applicable

Thanks Dave!

 

I guess that creates another problem for me then.  I am not able to get the files to open up on the GIS viewer.  Are there reasons why lines or polyline shape files will not be created, even if it appears they were created?

 

Regards,

Bismarck Acosta

0 Likes
Message 4 of 8

tcorey
Mentor
Mentor

If you are trying to MapExport a shape file (ESRI SHP), you should end up with  *.shp, *.shx, *.dbf, *.idx, and *.cpg. 



Tim Corey
MicroCAD Training and Consulting, Inc.
Redding, CA
Autodesk Gold Reseller

New knowledge is the most valuable commodity on earth. -- Kurt Vonnegut
0 Likes
Message 5 of 8

Anonymous
Not applicable

Tim,

 

Yeah it give me all those files plus the *.prj file, but when we try to import them into the GIS viewer it doesn't work.  Are there mapexport settings that can be adjusted?

 

Regards,

Bismarck

0 Likes
Message 6 of 8

WarrenGeissler
Advisor
Advisor

Right after exporting your file, you should immediately connect to the file in your MAP session using the FDO Data Attach in order to ensure you have a compete file. There are several things that can potentially go wrong with the export (wrong feature type, not checking close polylines, bad coordinate system, etc.)

 

Also - remember to DELETE the .IDX file before trying to import into ArcGIS as it may cause performance issues.


Warren Geissler
Drafting Manager Denver Water
_____________________________________________

Please ACCEPT AS SOLUTON if this works
(...and doesn't melt your computer or cause Armageddon)

0 Likes
Message 7 of 8

ChicagoLooper
Mentor
Mentor

The four files are that you need to allow others to view and use your shapefile are .shp, .dbf, ,shx, and .prj. Each file plays a different role: the geometry, attribute data, an index to tie the geometry and data together, and projection to accurately position the geometry against a know coordinate system. All four files must be in the same Windows folder, no exceptions. If the files are separated or if one of the four are missing, you will have issues opening the shapefile. It doesn't matter whether you use ESRI, AutoCAD or another program, the files must be together.

 

You may have two or more shapefiles in the folder as long as each shapefile has all four parts. The other files you mention, cpg, idx, sbn and sbx, may help or they may hinder, it depends on whether you are using the same program (ESRI or Acad) as the original author. You may put those files in a folder separate from the shapefile folder to reduce clutter--they are not needed--and if they are, you'll know where to retrieve them.   

 

If you have Google Earth Pro, you may go to File=>Import=>navigate to your shapefile (be sure to change the file type from the dropdown menu to ESRI shape) then click open. Follow the prompts and your shapefile will display on the map. If you don't see your shapefile, go the left panel and in 'Places' section, scroll to bottom and put a check mark next to your shapefile's name.

Chicagolooper

EESignature

0 Likes
Message 8 of 8

Pointdump
Consultant
Consultant

Bismarck,

When you say "GIS Viewer", do you mean _MAPCONNECT? Can you post one of your problem Shapefiles?

Dave

Dave Stoll
Las Vegas, Nevada

EESignature

64GB DDR4 2400MHz ECC SoDIMM / 1TB SSD
NVIDIA Quadro P5000 16GB
Windows 10 Pro 64 / Civil 3D 2025
0 Likes