Returns the Paper Space proxy for the database that can be used to iterate through its Paper Space.
Supported platforms: Windows only
Namespace: AcStMgr
Assembly: AcStMgr.tlb
VB.NET:
object.PaperSpaceProxy(pDb)
C#:
object.get_PaperSpaceProxy(pDb);
Type: AcStManager object
The object this property applies to.
Type: AcadDatabase object
The database whose paper space object you want to iterate.
Read-only: Yes
Type: AcStPaperSpaceProxy object
The Paper Space proxy of the database.
No additional remarks.
Releases: AutoCAD 2004 and later
VB.NET:
Public Sub SetupForAudit(ByVal pDb As AcadDatabase, _ ByVal szPathName As String, _ ByVal stdNameArray As Object, _ ByVal stdPathArray As Object, _ ByVal stdDbArray As Object) _ Implements IAcStPlugin2.SetupForAudit ' Number of graphical objects contained in model space and paper space of ' the database being checked If Not IsNothing(pDb) Then Dim msProxy As IAcStBlockProxy = m_pManager.ModelSpaceProxy(pDb) Dim psProxy As IAcStBlockProxy = m_pManager.PaperSpaceProxy(pDb) Debug.Print("Object counts " & vbLf & "Model: " & msProxy.Count.ToString() & vbLf & "Paper: " & psProxy.Count.ToString()) End If End Sub
C#:
public void SetupForAudit(AcadDatabase pDb, string szPathName, object stdNameArray, object stdPathArray, object stdDbArray) { // Number of graphical objects contained in model space and paper space of // the database being checked if (pDb != null) { IAcStBlockProxy msProxy = m_pManager.get_ModelSpaceProxy(pDb); IAcStBlockProxy psProxy = m_pManager.get_PaperSpaceProxy(pDb); Debug.Print("Object counts \nModel: " + msProxy.Count.ToString() + "\nPaper: " + psProxy.Count.ToString()); } }