找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 808|回复: 3

[VBA函数]:如何后台转换DWG文件的版本?!!!!!!

[复制链接]
发表于 2006-5-7 23:32:47 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
请问:
  如何将某个文件夹下的DWG文件逐一从高版本转为低版本?
  例:将2004格式的DWG,转为2002格式,以便用CAD2002打开。
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
发表于 2006-5-8 08:16:37 | 显示全部楼层
SaveAs Method



Saves the document to a specified file; no longer supported for menu groups.

See Also | Example

Signatures

object.SaveAs FileName, FileType [, SecurityParams]

Object

Document, MenuGroup
The object or objects this method applies to.



Note This method has no effect for menu groups.

FileName

String; input-only
The full path and file name, or valid URL address, for the file. The active document takes on the new name.

FileType


AcSaveAsType enum; input-only; optional for Document objects

acR14_dwg
AutoCAD R14 DWG (*.dwg)

ac2000_dwg
AutoCAD 2000 DWG (*.dwg)

ac2000_dxf
AutoCAD 2000 DXF (*.dxf)

ac2000_Template
AutoCAD 2000 Drawing Template File (*.dwt)

ac2004_dwg
AutoCAD 2004 DWG (*.dwg)

ac2004_dxf
AutoCAD 2004 DXF (*.dxf)

ac2004_Template
AutoCAD 2004 Drawing Template File (*.dwt)

ac2007_dwg
AutoCAD 2007 DWG (*.dwg)

ac2007_dxf
AutoCAD 2007 DXF (*.dxf)

ac2007_Template
AutoCAD 2007 Drawing Template File (*.dwt)

acNative
A synonym for the latest drawing release. In this release, this value equals ac2007_dwg.


SecurityParams

SecurityParams object; variant; optional for Document objects
Security settings for an encrypted drawing.

Remarks

The default file type for documents is ac2007_dwg. The value acR14_dxf is obsolete.

Documents can be saved only as files with the extensions indicated above. To save a document in a different file type, use the Export method.

When saving to a secure URL, a dialog box prompts the user for the necessary password information. Message boxes appear if the user has not suppressed this activity in the browser.

Menu groups cannot be saved in AutoCAD 2006 and later releases. This method will be removed from the MenuGroup object in a future release.


用法:
ThisDrawing.SaveAs "123.dwg", ac2000_dwg
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

发表于 2006-6-1 11:49:29 | 显示全部楼层
涨见识了
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

发表于 2006-7-15 13:18:11 | 显示全部楼层
高手
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|申请友链|Archiver|手机版|小黑屋|辽公网安备|晓东CAD家园 ( 辽ICP备15016793号 )

GMT+8, 2024-9-28 17:34 , Processed in 0.347501 second(s), 37 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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