How to add your knowledge

Creating an Industry Model Plugin Definition File

    Table of contents
    No headers

    When AutoCAD Map 3D starts, it reads the plugin definition files in the bin folder to determine what plugins are available.

    You can use a text editor to create a file with a .tbp extension. For this example, name the file MyTopobasePlugInProject.tbp. Save it in the project directory with your source code. Add it to the list of files in the Visual Studio Solution Explorer dialog box.

    Tip

    Display the properties of the file and make sure that the “Copy to Output Directory” property is set to “Copy Always”. This automatically copies the .tbp file to the AutoCAD Map 3D Client bin folder with the .dll whenever you build your project.

    The contents of the file are as follows:

    <?xml version="1.0" encoding="utf-8"?>
    
    <PlugIn>
    
      <Default
    
        AssemblyName="MyTopobasePlugInProject.dll"
    
        Namespace="MyTopobasePlugInProject"
    
        DocumentKey=""
    
        MapName=""
    
        Priority="100"
    
        ExecutionTargetWeb="True"
    
        ExecutionTargetDesktop="True"
    
      />
    
    <DocumentPlugIn ClassName="MyDocument"/>
    
    </PlugIn>
    
    Tip

    If you copy the above text and paste it into your MyTopobasePluginProject.tbp file, ensure that the pasted quotation marks are ASCII-encoded.

    Note

    The AssemblyName attribute value is MyTopobasePlugInProject.dll. By default the .dll name is the same as the project name.