Start メソッド(ActiveX/CSP)

エラーのチェックを初期化します。

サポートされているプラットフォーム: Windows のみ

名前空間: AcStMgr

アセンブリ: AcStMgr.tlb

構文と要素: AcStErrorIterator オブジェクト

内部使用のみ。

VB.NET:

object.Start([bShowIgnored])

C#:

object.Start([bShowIgnored]);
object

タイプ: AcStErrorIterator オブジェクト

このメソッドが適用されるオブジェクト。

bShowIgnored

アクセス: 入力のみ

タイプ: ブール型

エラーが無視するものとしてマークされた場合、

  • False: エラーのチェックは許可されません
  • True: エラーのチェックは許可されます

構文と要素: IAcStPlugin2 インタフェース

VB.NET:

Public Sub Start(pStartError) _
                    Implements IAcStPlugin2.Start
    ...
End Sub

C#:

public void Start(pStartError)
{
    ...;
}
object

タイプ: IAcStPlugin2 インタフェース

このメソッドが適用されるインタフェース。

pStartError

アクセス: 入力のみ

タイプ: AcStError オブジェクト

チェックするエラー オブジェクト。

戻り値(RetVal)

戻り値はありません。

注意

追加の注意はありません。

バージョン情報

バージョン: AutoCAD 2004 以降

VB.NET:

Public Sub PlugIn_Start(ByVal pStartError As AcStError) _
                        Implements IAcStPlugin2.Start

    ' pStartError is not an actual programming error that needs to be handled,
    ' but a reference to an object that does not match the standards
    ' in the DWS file.

    ' If pStartError is an object, checking should start
    ' from that error, not the beginning of the current context.
    If IsNothing(pStartError) = False Then

        ' Get the ObjectId of the first object to check
        Dim badId As Long = pStartError.BadObjectId

        ' Find the index for ObjectId in the context list stored in m_objIDArray
        For m_curIndex = 0 To m_ContextList.Count - 1
            If m_ContextList.Item(m_curIndex) = badId Then
                m_curIndex = m_curIndex - 1
                PlugIn_Next()
            End If
        Next
    Else
        ' A valid AcStError object was not passed to the method.
        ' Checking should start at the beginning of the context list.
        m_curIndex = -1
        PlugIn_Next()
    End If
End Sub

C#:

public void PlugIn_Start(AcStError pStartError)
{
    // pStartError is not an actual programming error that needs to be handled,
    // but a reference to an object that does not match the standards
    // in the DWS file.

    // If pStartError is an object, checking should start
    // from that error, not the beginning of the current context.
    if ((pStartError == null) == false)
    {
        // Get the ObjectId of the first object to check
        long badId = pStartError.BadObjectId;

        // Find the index for ObjectId in the context list stored in m_objIDArray
        for (m_curIndex = 0; m_curIndex <= m_ContextList.Count - 1; m_curIndex++)
        {
            if (Convert.ToInt64(m_ContextList.GetItem(m_curIndex)) == badId)
            {
                m_curIndex = m_curIndex - 1;
                PlugIn_Next();
            }
        }
    }
    else
    {
        // A valid AcStError object was not passed to the method.
        // Checking should start at the beginning of the context list.
        m_curIndex = -1;
        PlugIn_Next();
    }
}

void IAcStPlugin2.Start(AcStError pStartError)
{
    PlugIn_Start(pStartError);
}