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-x64\
- Select the
TRANSMITTALLib.dll file and click Add.
Note: The TRANSMITTALLib.dll file is generated from the AcETransmit<release>.tlb file by following the steps outlined in To Create an Interop Assembly of the Transmittal Type Library (ActiveX/ATO).
- 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 References 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.
VBA
The following steps explain how to reference the Transmittal Object library in a project created with Microsoft Visual Basic for Applications:
- In the AutoCAD-based program, start the Microsoft Visual Basic for Applications editor.
On the ribbon, click Manage tab
Applications panel
Visual Basic Editor. Find
- In the Microsoft Visual Basic for Applications editor, create a new project or open an existing project.
- On the menu bar, click Tools menu
References.
- In the References dialog box, click Browse.
- In the Add Reference dialog box, browse to one of the following locations:
- %ProgramFiles%\Common Files\Autodesk Shared\
- <drive>:\ObjectARX <release>\inc-x64\
- Select the
AcETransmit<version>.tlb file and click Open.
Note: Substitute <version> for the version number of the API used by the AutoCAD-based program being targeted.
- In the References dialog box, click OK to add the library reference to the project.
- On the menu bar, click File menu
Save.