To Create an Interop Assembly of the CAD Standards Type Library (ActiveX/CSP)

An interop assembly needs to be generated from the of the CAD Standards type library (TLB) file before you can link the library to a project. You create an interop from a TLB file with the Tlbimp.exe application.

Note: Based on the edition and version of Microsoft Visual Studio installed, you might need to download and install the Windows SDK to access the Tlbimp.exe application. The Windows SDK can be downloaded from https://developer.microsoft.com/en-us/windows/downloads.

Microsoft Visual Studio (Community, Professional, and higher)

  1. On the Start menu, click [All] Programs Microsoft Visual Studio <release> or Visual Studio <release> Visual Studio Tools and then choose one of the following based on release:
    • Microsoft Visual Studio 2019 - Developer Command Prompt for VS 2019
    • Microsoft Visual Studio 2017 - Developer Command Prompt for VS 2017
    • Microsoft Visual Studio 2015 - Developer Command Prompt for VS2015
    • Microsoft Visual Studio 2013 - Developer Command Prompt for VS2013
    • Microsoft Visual Studio 2012 - Developer Command Prompt for VS2012
    • Microsoft Visual Studio 2010 - Visual Studio Command Prompt (2010)
    • Microsoft Visual Studio 2008 - Visual Studio 2008 Command Prompt
  2. In the Command Prompt window, enter the following based on the ObjectARX SDK version:
    cd "<drive>:\ObjectARX <version>\inc-x64"
    Note: Substitute <drive> and <version> with the drive letter in which the ObjectARX SDK is installed and the release for which you are building the application.
  3. Type tlbimp AcStMgr.tlb /machine:Agnostic and press Enter.

    The file AcStMgr.dll will be added to the target folder.

Microsoft Visual Studio Community or Express Edition

  1. On the Start menu, click [All] Programs Accessories Command Prompt.
  2. In the Command Prompt window, enter the following based on the ObjectARX SDK version:
    cd "<drive>:\ObjectARX <version>\inc-x64"
    Note: Substitute <drive> and <version> with the drive letter in which the ObjectARX SDK is installed and the release for which you are building the application.
  3. Type "C:\Program Files\Microsoft SDKs\Windows\<version>\Bin\tlbimp.exe" AcStMgr.tlb /machine:Agnostic and press Enter.
    Note: Substitute <version> with the version of the Microsoft SDK you installed.

    The file AcStMgr.dll will be added to the target folder.