Message 1 of 2
VBA DWFOUT ?

Not applicable
12-10-2001
07:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I would like to create a procedure to export all layouts in *.DWF .
I have this VBA to print all layouts automaticly.
Is it possible to modify this VBA for exporting the file in *.DWF ?
Thanks in advance,
Philwil From Belgium
Sub ad_PlotLayouts()
'This routine plots all layouts(except modelspace) in the current drawing.
' It uses the current layout plot settings.
'Demand load: -vbarun;ad_Utility.dvb!ad_PlotLayouts;
Dim PlotLayout As AcadLayout
Dim PlotLayouts As AcadLayouts
Dim StrMsg As String
Dim StrTitle As String
Dim Response
On Error Resume Next
If ThisDrawing.ActiveSpace = acModelSpace Then _
ThisDrawing.ActiveSpace = acPaperSpace
Set PlotLayouts = ThisDrawing.Layouts
StrMsg = "PLOT ALL LAYOUTS ?: " &
PlotLayouts.count - 1 & " Layout(s)?"
StrTitle = "VERIFICATION"
Response = MsgBox(StrMsg, vbYesNo, StrTitle)
If Response = vbYes Then
For Each PlotLayout In PlotLayouts
If PlotLayout.Name <> "Model" Then
ThisDrawing.ActiveLayout = PlotLayout
ThisDrawing.Plot.PlotToDevice
End If
Next
End If
End Sub
I have this VBA to print all layouts automaticly.
Is it possible to modify this VBA for exporting the file in *.DWF ?
Thanks in advance,
Philwil From Belgium
Sub ad_PlotLayouts()
'This routine plots all layouts(except modelspace) in the current drawing.
' It uses the current layout plot settings.
'Demand load: -vbarun;ad_Utility.dvb!ad_PlotLayouts;
Dim PlotLayout As AcadLayout
Dim PlotLayouts As AcadLayouts
Dim StrMsg As String
Dim StrTitle As String
Dim Response
On Error Resume Next
If ThisDrawing.ActiveSpace = acModelSpace Then _
ThisDrawing.ActiveSpace = acPaperSpace
Set PlotLayouts = ThisDrawing.Layouts
StrMsg = "PLOT ALL LAYOUTS ?: " &
PlotLayouts.count - 1 & " Layout(s)?"
StrTitle = "VERIFICATION"
Response = MsgBox(StrMsg, vbYesNo, StrTitle)
If Response = vbYes Then
For Each PlotLayout In PlotLayouts
If PlotLayout.Name <> "Model" Then
ThisDrawing.ActiveLayout = PlotLayout
ThisDrawing.Plot.PlotToDevice
End If
Next
End If
End Sub