明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 771|回复: 4

如何用vba输出wmf格式的图片

[复制链接]
发表于 2020-4-17 15:04 | 显示全部楼层 |阅读模式
各位大佬,能否告诉一下如何用vba编程输出wmf格式的图片
发表于 2020-4-17 20:24 | 显示全部楼层
sendcommand 调用 WMFOUT命令就行了
发表于 2020-4-21 11:04 | 显示全部楼层
Sub Example_Export()
   Dim SSet As AcadSelectionSet
    For Each SSet In ThisDrawing.SelectionSets
        If SSet.Name = "SS1" Then
            ThisDrawing.SelectionSets.Item("SS1").Delete
            Exit For
        End If
    Next
    Set SSet = ThisDrawing.SelectionSets.Add("SS1")
SSet.SelectOnScreen
    Dim objEnt As AcadEntity

    For Each objEnt In SSet
        exportFile = "C:\AutoCAD\DXFExprt"  
        ThisDrawing.Export exportFile, "wmf", SSet


End Sub
发表于 2020-4-21 11:05 | 显示全部楼层
最后 少了个next
发表于 2020-4-30 16:00 | 显示全部楼层
wmf不太清晰吧。发送到打印机指定文件夹。图片格式转换wmf?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2024-5-4 03:25 , Processed in 0.271368 second(s), 23 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表