Public Class exportWMF
<CommandMethod("exportWMF")> _
Public Sub exportWMF()
On Error Resume Next
Dim acadDoc As AcadDocument = Autodesk.AutoCAD.ApplicationServices.Application.AcadApplication.ActiveDocument
Dim acadSSet As AcadSelectionSet = acadDoc.SelectionSets.Add("exportWmf")
acadSSet.SelectOnScreen()
acadDoc.Export("C:\exportWmf", "wmf", acadSSet)
acadSSet.Delete()
End Sub
End Class
<CommandMethod("exportWMF")> _
Public Sub exportWMF()
On Error Resume Next
Dim acadDoc As AcadDocument = Autodesk.AutoCAD.ApplicationServices.Application.AcadApplication.ActiveDocument
Dim acadSSet As AcadSelectionSet = acadDoc.SelectionSets.Add("exportWmf")
acadSSet.SelectOnScreen()
acadDoc.Export("C:\exportWmf", "wmf", acadSSet)
acadSSet.Delete()
End Sub
End Class
|
暂时没有评论
发表评论 - 不要忘了输入验证码哦! |