Message 1 of 3
Not applicable
06-13-2011
12:09 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
<CommandMethod("IterateSetups")> _
Public Sub IteratePageSetups()
'' Get the current document and database, and start a transaction
Dim acDoc As Document = Application.DocumentManager.MdiActiveDocument
Dim acCurDb As Database = acDoc.Database
Using acTrans As Transaction = acCurDb.TransactionManager.StartTransaction()
'' This example returns the PageSetup table for the current database
Dim acPltDic As DBDictionary
acPltDic = acTrans.GetObject(acCurDb.PlotSettingsDictionaryId, _
OpenMode.ForRead)
'' Step through the PageSetup table and print each PageSetup name
For Each acObjId In acPltDic
Dim acPlotSet As PlotSettings
acPlotSet = acTrans.GetObject(acObjId, OpenMode.ForRead)
acDoc.Editor.WriteMessage(vbLf & acPlotSet.PlotSettingsName)
Next
'' Dispose of the transaction
End Using
End SubWhat's the sub object for a PlotSettings Dicitionary here? I'm just trying to iterate through them.
Solved! Go to Solution.