Interoperability - export dgn to shapefile - failure

Please can anyone cast a light on my problem.

I get the following error message when attempting to export linestring elements to shapefiles.

"Exception: Object reference not set to an instance of an object."

No elements are exported, No files are created.

I have tried this with several different files, in different workspaces, all with the same result.

I am using Bentley Map Standalone SS3 08.11.09.107 on a Dell XPS 8500, i7-3770, 64bit

I have been using Bentley Map SS1 & SS2 installed over MicroStation for some years and have not previously encountered this error, in fact the process has always been entirely straightforward. I have never used a geospatial project for this, just the Interoperability dialog box.

Bentley Map Standalone has only been installed on this machine for approx. two months, and this is the first time I have tried this operation while using it.

As I had done quite a bit of customisation on the config files, I thought that I might have upset something, so I have completely re-installed the program (inc. pre-requiste files) and tried again, but get the same message.

My final test file is a copy of the Bentley supplied work.dgn. There are two single lines on a new layer and the Geodetic parameters are set to UTM30N-WGS84.

Has anything changed? Is It now necessary to use a Geospatial Administrator Project?

The instructions in the help file seem to be the same. I have tried importing linework and that is OK.

Thanks for any guidance, Alice.

 

 

AT-export.zip
  • I can reproduct it. A further listing of the error is as follows:

    Exception:

    Object reference not set to an instance of an object.

    System.NullReferenceException: Object reference not set to an instance of an object.

      at Bentley.Geospatial.SpatialReferenceSystems.SRSWKTConverter.AppendUTMZonedProjectionToWKT(basic_string<wchar_t\,std::char_traits<wchar_t>\,std::allocator<wchar_t> >* STLwkt, IOgcCartographicProjection projection, IOgcUnit projectionUnit)

      at Bentley.Geospatial.SpatialReferenceSystems.SRSWKTConverter.CreateWKTFromProjectedCoordinateReferenceSystem(IOgcProjectedCoordinateReferenceSystem projectedCoordinateReferenceSystem)

      at Bentley.Geospatial.SpatialReferenceSystems.SRSWKTConverter.CreateWKTFromCoordinateReferenceSystem(IOgcCoordinateReferenceSystem coordinateReferenceSystem)

      at Bentley.Geospatial.SpatialReferenceSystems.SRSWKTDictionaryBasedConverter.CreateWKTFromCoordinateReferenceSystem(IOgcCoordinateReferenceSystem coordinateReferenceSystem, ArrayList pio_pErrors)

      at Bentley.Geospatial.SpatialReferenceSystems.SRSWKTDictionaryBasedConverter.CreateWKTFromCoordinateReferenceSystem(IOgcCoordinateReferenceSystem coordinateReferenceSystem)

      at Bentley.Geospatial.Storage.OGRSpatialReferenceFromOgcCoordinateReferenceSystem(IOgcCoordinateReferenceSystem ogcCRS, SRSWKTConverter wktConverter)

      at Bentley.Geospatial.Storage.OGRStorage.CreateLayer(IECClass classDef, String layerName, IOgcGeometry ogcGeom, Boolean createMultiGeom, OGRDataSource* dataSource)

      at Bentley.Geospatial.Storage.OGRStorage.InsertObject(IECInstance newObject)

      at Bentley.Geospatial.DataInterchange.GDIImportProcessor.InsertOrPopulateInstance(IECInsertableStorage insertStorage, IECLockInfo lockInfo, IECInstance instance, ECXfmSettings xfmSettings)

      at Bentley.Geospatial.DataInterchange.GDIImportProcessor.ImportInstance(IECInstance instance, IECInsertableStorage insertStorage, ECXfmSettings xfmSettings, IECLockInfo lockInfo, Int32& count, Int32 max)

      at Bentley.Geospatial.DataInterchange.GDIImportProcessor.ImportCursorInstances(IECInstanceCursor cursor, IStorageImportCriteria storageImp)

      at Bentley.Geospatial.DataInterchange.GDIImportProcessor.ImportStorageImport(IImportCriteria criteria, IStorageImportCriteria storageImport, Boolean cancellable)

      at Bentley.Geospatial.DataInterchange.GDIImportProcessor.Import(IImportCriteria importCrit, IStorageImportCriteria singleStorage)

    I will check to see if this has been previously reported.

    I realize this is not much help for now, but let me check around..

     

  • I'm not certain what that specific error message means.  Hopefully one of the developers will step in to advise.  In any event, I'm not able to reproduce this on Bentley Map Enterprise SS3 08.11.09.91.  (I don't have Bentley Map Standalone installed at the moment.)

    As you mention, you don't need a project to export graphics to SHP.  Just open the file and follow these steps:

    File > Map Interoperability > Exports tab

    Select Exports node, right click and choose New Export

    Hightlight the new node, right click and choose Add Shapefile

    In the Create Shapefile dilaog, select the output folder and enter a name.

    Click Save.

    Select the Export1 node, do a right click and select Export

    The export is executed - and the results are noted in the Message Center.