指定されたエラーの解決に使用される可能性のある AcStFix オブジェクトの配列を返します。
サポートされているプラットフォーム: Windows のみ
名前空間: AcStMgr
アセンブリ: AcStMgr.tlb
VB.NET:
object.GetAllFixes(fixArray, recommendedFixIndex)
C#:
object.GetAllFixes(ref fixArray, ref recommendedFixIndex);
VB.NET:
Public Sub GetAllFixes(pError, fixArray, recommendedFixIndex) _
Implements IAcStPlugin2.GetAllFixes
...
End Sub
C#:
public void GetAllFixes(pError, ref fixArray, ref recommendedFixIndex)
{
...;
}
タイプ: IAcStPlugin2 インタフェース
このメソッドが適用されるオブジェクト。
アクセス: 入力のみ
タイプ: AcStError オブジェクト
設定された CAD 標準仕様と一致しないエラー オブジェクト。
アクセス: 入力/出力
タイプ: バリアント型(AcStFix オブジェクトの配列)
エラー オブジェクトのプロパティの修正に使用される可能性がある修正オブジェクト。
アクセス: 入力/出力
タイプ: 長整数型
配列内の推奨される修正オブジェクトのインデックス。
-1 の値は、推奨される修正がないことを示します。
戻り値はありません。
追加の注意はありません。
バージョン: AutoCAD 2004 以降
VB.NET:
Not available
C#:
Not available
VB.NET:
Public Sub GetAllFixes(ByVal pError As AcStError, _
ByRef fixArray As Object, _
ByRef recommendedFixIndex As Integer) _
Implements IAcStPlugin2.GetAllFixes
' << Change based on standards implementation >>
If IsNothing(pError) = False Then
Dim arr(UBound(m_LayerCacheArray)) As IAcStFix
Dim i As Integer
recommendedFixIndex = -1
m_FixCnt = 0
' Check the cache of fixes
If m_LayerCacheArray.Length > 0 Then
' Get the properties of the fix
For i = LBound(m_LayerCacheArray) To UBound(m_LayerCacheArray)
arr(i) = m_LayerCacheArray(i).StandardsFix
Next
fixArray = arr
m_FixArray = fixArray
Dim tmpFix As New AcStFix()
' Find the recommended fix for the error; the fix object does need to be retained
If Not GetRecommendedFix(pError) Is Nothing Then
recommendedFixIndex = m_RecommendedFixIndex
End If
End If
' Was a recommended fix found
If recommendedFixIndex = -1 Then
' No recommended fix found, set the proper result status flag for the error object
pError.ResultStatus = AcStResultStatus.acStResNoRecommendedFix
End If
End If
End Sub
C#:
public void GetAllFixes(AcStError pError, ref object fixArray, ref int recommendedFixIndex)
{
// << Change based on standards implementation >>
if ((pError == null) == false)
{
int nLBound = m_LayerCacheArray.GetLowerBound(0);
int nUBound = m_LayerCacheArray.GetUpperBound(0);
IAcStFix[] arr = new IAcStFix[nUBound + 1];
int i = 0;
recommendedFixIndex = -1;
m_FixCnt = 0;
// Check the cache of fixes
if (m_LayerCacheArray.Length > 0)
{
// Get the properties of the fix
for (i = nLBound; i <= nUBound; i++)
{
arr[i] = m_LayerCacheArray[i].StandardsFix;
}
fixArray = arr;
m_FixArray = fixArray;
AcStFix tmpFix = new AcStFix();
// Find the recommended fix for the error; the fix object does need to be retained
if (GetRecommendedFix(pError) != null)
{
recommendedFixIndex = m_RecommendedFixIndex;
}
}
// Was a recommended fix found
if (recommendedFixIndex == -1)
{
// No recommended fix found, set the proper result status flag for the error object
pError.ResultStatus = AcStResultStatus.acStResNoRecommendedFix;
}
}
}