Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
Trying to export a dwg to a bitmap format.
Neither of the two options shown below worked.
What am I missing?
Thank you
Sub Export_image()
Dim exportFile As String
exportFile = "c:\tmp\image.bmp"
Dim sset As acadSelectionSet
ThisDrawing.SelectionSets.Item("TEST").Delete
Set sset = ThisDrawing.SelectionSets.Add("TEST")
' option 1
Thisdrawing.saveasbitmap exportFile, 1200, 800
' option 2
Thisdrawing.export expotfile,"bmp", sset
End Sub
Solved! Go to Solution.