How to add your knowledge

Running the Bridge Sample

    Table of contents
    No headers

    This sample demonstrates how to bridge AutoCAD® entities and Platform features, specifically:

    • How to convert AcDbEntity to MgGeometry, and add to layer as a feature.
    • How to convert MgGeometry to AcDbEntity, and delete the feature from layer.

    To load the sample application:

    1. At the

      Command:

      prompt in AutoCAD Map 3D, enter the command NETLOAD .
    2. Choose Bridge.dll in the file browser.

    To run the sample application:

    1. RunAutoCAD Map 3Dand load the Bridge.dll.
    2. Add one or more vector layers into AutoCAD Map 3D.
    3. Draw one or more entities.
    4. Run the command ToFeature to convert Entity to Feature.
    5. When prompted, select a layer in which to add the new feature. Enter the property values in the form provided.
    6. Run the command ToEntity to convert Feature to Entity.
    7. Select one or more Features.
    NoteThis sample is not intended to support all entity types. For demonstration purposes, it currently supports AcDbPoint, AcDbLine, AcDbPolyLine, and AcDbMPolygon conversion.