Adds a drawing file to the transmittal set.
Supported platforms: Windows only
Namespace: TRANSMITTALLib
Assembly: acETransmit20.tlb
VBA/VB.NET:
RetVal = object.addDrawingFile(fullpathname, ppIAddedFile)
C#:
RetVal = object.addDrawingFile(fullpathname, out ppIAddedFile);
Type: TransmittalOperation object
The object this method applies to.
Access: Input-only
Type: String
Path and name of the drawing file to add to the transmittal set.
Access: Output-only
Type: TransmittalFile object
TransmittalFile object that represents the drawing file added to the transmittal set.
Type: AddFileReturnVal enum
Constant value that represents whether the drawing file was successfully added to the transmittal set.
No additional remarks.
Releases: AutoCAD 2005 and later
VB.NET:
' Custom command to create a transmittal package with a drawing file
<CommandMethod("eTransmitDWGFile")> _
Public Shared Sub eTransmitDWGFile()
' Create a transmittal operation
Dim tro As TransmittalOperation = New TransmittalOperation()
' Setup the transmittal behavior
Dim ti As TransmittalInfo = _
TransInfo(tro.getTransmittalInfoInterface(), "C:\Users\Public\TransmittalAPITest\")
' Add a DWG file
Dim tf As TransmittalFile = Nothing
tro.addDrawingFile("C:\AutoCAD\Sample\Sheet Sets\Architectural\A-02.dwg", tf)
' Reclaculate the sub path for all files in the transmittal package
tro.recalcTargetSubPath()
' Create the transmittal package
' Files are copied and resaved to the path specified by the destinationRoot property
' and the other settings of the TransmittalInfo object.
tro.createTransmittalPackage()
End Sub
C#:
// Custom command to create a transmittal package with a drawing file
[CommandMethod("eTransmitDWGFile")]
public static void eTransmitDWGFile()
{
// Create a transmittal operation
TransmittalOperation tro = new TransmittalOperation();
// Setup the transmittal behavior
TransmittalInfo ti =
TransInfo(tro.getTransmittalInfoInterface(), "C:\\Users\\Public\\TransmittalAPITest\\");
// Add a DWG file
TransmittalFile tf = null;
tro.addDrawingFile("C:\\AutoCAD\\Sample\\Sheet Sets\\Architectural\\A-02.dwg", out tf);
// Reclaculate the sub path for all files in the transmittal package
tro.recalcTargetSubPath();
// Create the transmittal package
// Files are copied and resaved to the path specified by the destinationRoot property
// and the other settings of the TransmittalInfo object.
tro.createTransmittalPackage();
}