転送セットに新しいファイルが追加されると開始されます。
サポートされているプラットフォーム: Windows のみ
名前空間: TRANSMITTALLib
アセンブリ: acETransmit20.tlb
VB.NET:
Friend Class custom_class_name
Implements TransmittalAddFileNotificationHandler
Public Sub addFileNotificationHandler(pFile, pTransmit) _
Implements TRANSMITTALLib.ITransmittalAddFileNotificationHandler.addFileNotificationHandler
...
End Sub
End Class
C#:
internal class custom_class_name : TransmittalAddFileNotificationHandler
{
public void addFileNotificationHandler(pFile, pTransmit)
{
...
}
}
カスタム クラスの名前。
アクセス: 入力のみ
タイプ: TransmittalFile オブジェクト
転送セットに図面またはファイルが追加されるときに作成される TransmittalFile オブジェクトへのポインタ。
アクセス: 入力のみ
タイプ: TransmittalOperation オブジェクト
図面またはファイルが追加されている転送セットを表す TransmittalOperation オブジェクトへのポインタ。
戻り値はありません。
追加の注意はありません。
リリース: AutoCAD 2004 以降
VB.NET:
' Custom class used to monitor files being added to the transmittal package
Friend Class MyTransFileNotifier
Implements TransmittalAddFileNotificationHandler
' Used to get a notification when a drawing or file is added to the transmittal package
Public Sub addFileNotificationHandler(pFile As TRANSMITTALLib.TransmittalFile, _
pTransmit As TRANSMITTALLib.TransmittalOperation) _
Implements TRANSMITTALLib. _
ITransmittalAddFileNotificationHandler.addFileNotificationHandler
Application.DocumentManager.MdiActiveDocument.Editor. _
WriteMessage(Environment.NewLine & _
"File added to transmittal package: " & pFile.sourcePath)
End Sub
End Class
C#:
// Custom class used to monitor files being added to the transmittal package
internal class MyTransFileNotifier : TransmittalAddFileNotificationHandler
{
// Used to get a notification when a drawing or file is added to the transmittal package
public void addFileNotificationHandler(TRANSMITTALLib.TransmittalFile pFile,
TRANSMITTALLib.TransmittalOperation pTransmit)
{
Application.DocumentManager.MdiActiveDocument.Editor.
WriteMessage(Environment.NewLine + "File added to transmittal package: " +
pFile.sourcePath);
}
}