AutoCAD Map 3D

Community Scoring

Was this page helpful?

Tag Tags0

This page has no tags

Page statistics

872 views1 edit(s)7946 characters(s) Page last modified 12:16, 10 Apr 2012 by contentconnector
How to add your knowledge

Procedure

    Table of contents
    No headers

    To use this sample:

    1. Add some points and lines to the TBSAMPLE workspace. This can be done by using Sample 02 - Read/Write Features or within AutoCAD Map 3D by right-clicking MyPoint and MyLine, choosing Show From, and adding records.
    2. Build the sample. The plugin (VBSample46.dll or CSSample46.dll) and the associated .tbp file are copied to the AutoCAD Map 3D Client bin directory.
    3. Start AutoCAD Map 3D and open the TBSAMPLE workspace.
    4. Click Generate Graphic.
    5. Specify an appropriate viewport and click Generate.
    6. Click the document toolbar button with the Sample 46 - Web Interaction caption. A new form is displayed.

    This form illustrates how you can interact with a map:

    • Click Get Point in Map and then click on a point in the generated graphic. AutoCAD Map 3D displays an information dialog box with the x=<number> y=<number> text. Click OK. AutoCAD Map 3D displays an information dialog box with the Now You Are Back In The Main Thread text. Click OK.
    • Click Choose and then select a feature in the map. AutoCAD Map 3D displays an information dialog box containing information about the feature you selected. Assuming you selected a point, the following text is displayed in the dialog box:
      Fid=<number>
      
      Class=MYPOINT
      
      FirstPointIndex=-1
      
      SecondPointIndex=-1
      
    • Click Get Drawing Extremes. AutoCAD Map 3D displays information about the extents of the map. It displays an information dialog box with the Xmin=<number> Ymin=<number> Xmax=<number> Ymax=<number> text. Click OK.
    • Click Info and then click one point in the map. Press Enter. AutoCAD Map 3D displays an information dialog box with the Fid=<number> text. Click OK.
    • Click Info. Click anywhere in the map, drag the cursor to form a selection rectangle around a set of points and click. Press Enter. AutoCAD Map 3D displays an information dialog box with the Fid=<number> text. Click OK. AutoCAD Map 3D displays another information dialog box with the Fid=<number> text. Click OK. AutoCAD Map 3D continues to display information dialog boxes until the feature class identifier for each of the points selected have all been displayed.