Managed .NET (VB.NET or C#)
The following steps explain how to reference the Transmittal Object library in a project created with Microsoft Visual Studio:
- In Microsoft Visual Studio, create a new project or open an existing project.
- On the menu bar, click Project menu Add Reference.
- In the Reference Manager dialog box, click Browse.
- In the Select the Files to Reference dialog box, browse to one of the following locations:
- %ProgramFiles%\Common Files\Autodesk Shared\
- <drive>:\ObjectARX <release>\inc-win32\ for 32-Bit or
<drive>:\ObjectARX <release>\inc-x64\ for 64-Bit
- Select the
AcETransmit<version>.tlb file and click Add.
Note: Substitute
<version> for the version number of the API used by the AutoCAD-based program being targeted.
- In the Reference Manager dialog box, click OK to add the library reference to the project.
- In the Solution Explorer, expand the current project.
- Do one of the following based on the project type loaded into Microsoft Visual Studio:
- VB.NET - Right-click the project node and choose Properties. Click the Properties tab and select
transmittal
<version>.0 Type Library.
- C# - Expand the References node under the project node and select
TRANSMITTALLib.
Note: Substitute
<version> for the version number of the API used by the AutoCAD-based program being targeted.
- In the Properties Window, set the following property values:
- Embed Interop Types = True
- Isolated = False
- On the menu bar, click File menu Save All.