PROBLEM EXPORT SHAPE FILE

I tried to export dgn file to shape file but I encountered a problem...

In the Interoperability form I selected 'New Export' and after that I selected 'Add ESRI SHP file'.

When I tried to export 1 feature the message below reported appear:

Exception: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

The dbf, shp and shx files are created but their dimensions are only 1 KB...

I thought the dgn dimension was the problem but I had the same problem with a dgn with only 2 features.

What can I do?

Thanks in advance.

Alder


N.B. I use Bentley Map XM edition (08.09.04.147 version) but I have the same problem with Bentley Map V8I (08.11.07.87 version)


Parents
  • Can you  also post the drawing that has the data you are trying to export ??

     

  • Something strange with this data. I can open the drawing, create a export node, but no features show up in the list, though I can review the feature using the data browser, feature analyer, etc. Can you file a ST with TSG and post this file with the ST. This way we can dig deeper into the problem.

    Tx.

    Jerry

     

  • Alder,

    While your sample design file contained 2 visible polygon feature instances, it seems there were some ~500 instances of the Mare and Terra feature class that contained no geometries. Were these intended to be data only features? Using the Data Browser application and performing a "Load All" indicates both Mare and Terra feature classes are being seen as data only features (based upon the icon)...

    ...which explains why Jerry was unable to see any features under the "Export" node in the Interoperability application. After removing the possibly orphaned feature instances, the Data Browser reveals 2 instances of the Terra feature class...

    ...which are correctly seen as polygon geometry types. These feature instances can then be successfully exported using the Interoperability application as seen in the following:

    A revised copy of your design file and resulting SHP are attached for your reference. We need to determine 1) if the data only features were intentional and if not 2) what process caused this situation.

    Regards,

    Jeff Bielefeld [Bentley]



    Terra1.zip
  • Jeff, How can I remove the orphan features?

    The orphan features are not intentional... I'll check what caused this situation

    Thanks.

    Alder

  • Alder,

    To remove the orphans, you can use the following workflow:

    1. Create a new empty design file using the same seed file that was used to create the EXPORT_SHP_1.dgn design file.
    2. Open the newly created design file and reference attach EXPORT_SHP_1.dgn with coincident world setting.
    3. Perform a fit view of all files so that all graphical feature instances are visible.
    4. Place a fence around all graphical feature instances.
    5. Set fence lock to inside mode.
    6. Start a fence copy command and select any point on screen for first point.
    7. For second (accept) point, enter DX=0 to perform the copy.
    8. Enter REFERENCE DETACH ALL to remove the reference attachment.
    9. Perform "File Save", "Save Settings" and then exit your MicroStation and Bentley Map session.

    Once the above steps have been completed, restart Bentley Map and open your newly created design file and using the "Load All" command in the "Data Browser" application, check to see if the polygon icon is shown for your Terra feature class. If confirmed, you should be able to perform an "Export" using the "Interoperability" application.

    Regards,

    Jeff Bielefeld [Bentley]



Reply
  • Alder,

    To remove the orphans, you can use the following workflow:

    1. Create a new empty design file using the same seed file that was used to create the EXPORT_SHP_1.dgn design file.
    2. Open the newly created design file and reference attach EXPORT_SHP_1.dgn with coincident world setting.
    3. Perform a fit view of all files so that all graphical feature instances are visible.
    4. Place a fence around all graphical feature instances.
    5. Set fence lock to inside mode.
    6. Start a fence copy command and select any point on screen for first point.
    7. For second (accept) point, enter DX=0 to perform the copy.
    8. Enter REFERENCE DETACH ALL to remove the reference attachment.
    9. Perform "File Save", "Save Settings" and then exit your MicroStation and Bentley Map session.

    Once the above steps have been completed, restart Bentley Map and open your newly created design file and using the "Load All" command in the "Data Browser" application, check to see if the polygon icon is shown for your Terra feature class. If confirmed, you should be able to perform an "Export" using the "Interoperability" application.

    Regards,

    Jeff Bielefeld [Bentley]



Children