Vertical application modules may also require custom types of initialization in the AutoCAD Map 3D Administrator application. You can add new pages to the “Setup” branch of the tree by creating a plugin based on the ApplicationAdminPage class and you can add pages to the document branches (which are visible only after loading a workspace) by creating a plugin based on the DocumentAdminPage class. Sample 122 includes a plugin based on DocumentAdminPage - there are no samples using ApplicationAdminPage, but the two classes are very similar.
public partial class MyAdminPage :
Autodesk.Map.IM.Forms.Desktop.DocumentAdminPage
{
}
The name of the page must be set when the plugin is loaded. If you are creating a DocumentAdminPage-based plugin, the name is displayed in each document tree once a workspace is loaded. If you are creating an ApplicationAdminPage-based plugin, the name is displayed in the “Setup” section of the tree view. If the name property has not been set, the title of your page is three question marks (“???”).
// Constructor
public MyAdminPage()
{
// Set up the event handler for the Load event so that the
// function MyAdminPage_Load is called when the plugin
// is first loaded.
this.Load += new System.EventHandler(this.MyAdminPage_Load);
}
private void MyAdminPage_Load(object sender, EventArgs e)
{
// Set the text shown in the AutoCAD Map 3D Administrator tree view.
this.Text = "My Custom Admin Page";
}