Reports whether the plug-in uses the database to check the drawing.
Supported platforms: Windows only
Namespace: AcStMgr
Assembly: AcStMgr.tlb
For internal use only.
VB.NET:
object.StampDatabase(pDb, pluginProgIdArray)
C#:
object.StampDatabase(pDb, pluginProgIdArray);
Type: AcStManager object
The object this method applies to.
Access: Input-only
Type: AcadDatabase object
The database object to check.
Access: Input-only
Type: Variant (Array of Strings)
The database object to check.
VB.NET:
Public Sub StampDatabase(pDb, pStampIt) _
Implements IAcStPlugin2.StampDatabase
...
End Sub
C#:
public void StampDatabase(pDb, ref pStampIt)
{
...;
}
Type: IAcStPlugin2 interface
The interface this method applies to.
Access: Input-only
Type: AcadDatabase object
The database object to check.
Access: Input/Output
Type: Boolean
No return value.
This method stamps the database object with information about a plug-in, such as the name and version. The information is used to determine which plug-ins a DWS file needs to support it.
The StampDatabase method of the AcStManager object instantiates each plug-in identified in pluginProgIdArray and calls the plug-in's StampDatabase method of the IAcStPlugin interface. If the pStampIt value returned is True, this method embeds information about the plug-in.
Releases: AutoCAD 2004 and later
VB.NET:
Not available
C#:
Not available
VB.NET:
Public Sub StampDatabase(ByVal pDb As AcadDatabase, _
ByRef pStampIt As Boolean) _
Implements IAcStPlugin2.StampDatabase
' << Change based on standards implementation >>
' If the DWS contains layers, return true
' Otherwise, return false
pStampIt = False
If pDb.Layers.Count > 0 Then
pStampIt = True
End If
End Sub
C#:
public void StampDatabase(AcadDatabase pDb, ref bool pStampIt)
{
// << Change based on standards implementation >>
// If the DWS contains layers, return true
// Otherwise, return false
pStampIt = false;
if (pDb.Layers.Count > 0)
{
pStampIt = true;
}
}