QueryAndLocate

Land Desktop Map 3D Samples

 
QueryAndLocate
 
 
 

The QueryAndLocate method does the following:

  1. Call the Instance static property of the QueryPaletteSet class. If an instance of QueryPaletteSet has not yet been created, this will create one. The QueryPaletteSet class is a singleton, so there can never be more than one instance of QueryPaletteSet no matter how many times QueryAndLocate is called. When the QueryPaletteSet object is created, it makes a new AutoCAD PaletteSet window and adds a QueryControl user control to it. It also sets up an event handler to clean up the PaletteSet window when the Map document is closed.
  2. Call the Show method of the QueryPaletteSet instance. This makes the PalettSet window visible and calls the OnLoad method of the QueryControl user control that was created earlier, which sets up and displays the QueryControl control.