找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 548|回复: 2

[求助] ARX如何保存图层要素为DWG文件

[复制链接]
发表于 2018-7-10 11:25:37 | 显示全部楼层 |阅读模式

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

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

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

已领礼包: 20个

财富等级: 恭喜发财

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

使用道具 举报

已领礼包: 40个

财富等级: 招财进宝

发表于 2018-7-10 12:14:34 | 显示全部楼层
AcDbDatabase::wblock Function

Acad::ErrorStatus
wblock(
AcDbDatabase* pOutputDb,
const AcDbObjectIdArray& outObjIds,
const AcGePoint3d& basePoint,
AcDb::DuplicateRecordCloning drc);
pOutputDbInput pointer to an existing AcDbDatabase
outObjIdsInput array of object IDs of all objects to be wblocked out
basePointInput base point (in WCS coordinates for pOutputDb) to be used in pOutputDb
drcInput desired DuplicateRecordCloning type
This method uses the wblockClone() mechanism to write the array of objects specified by outObjIds to the model space block table record of the database pointed to by pOutputDb, using basePoint as the base point value for pOutputDb.
The AcDbDatabase pointed to by pOutputDb must contain a header and symbol tables. Thus, if it was created with the AcDbDatabase constructor's buildDefaultDrawing argument set to false, a drawing must have already been read into it in order to populate it with a header and symbol tables.
The drc value determines what happens if symbols or dictionary entries are cloned when one or more duplicates already exist in the destination database. drc must keep the same setting in multiple calls, and can be only one of the following:

AcDb::kDrcIgnoreIf a duplicate is found, ignore the clone, and continue to use the existing record in the destination database. This is how the INSERT command and the AcDbDatabase::insert() function operate.
AcDb::kDrcReplaceIf a duplicate is found, replace it with the cloned record.
AcDb::kDrcMangleNameMangle all the incoming record names. The mangling ensures unique names. This is how the REFEDIT command works.
AcDb::kDrcUnmangleNamePrimarily used by REFEDIT when it checks the records back into the origin database. Any mangling done by kDrcMangleName is undone, and then it defaults to kDrcIgnore. In other words, if a duplicate is found after removing the manging, AutoCAD continues to use the existing record, and ignores the cloned one.
Returns Acad::eOk if operation is successful.
Returns Acad::eInvalidInput if drc is not one of the four valid types.
See the BASE command documentation in the AutoCAD online help for more information on base point.

Acad::ErrorStatus
wblock(
AcDbDatabase*& pOutputDb,
const AcDbObjectIdArray& outObjIds,
const AcGePoint3d& basePoint);
pOutputDbReturns pointer to the database that was written to
outObjIdsInput array of objectId entities of all objects to be wblocked out
basePointInput base point (in WCS coordinates for pOutputDb) to be used in pOutputDb
Creates a new AcDbDatabase object, sets pOutputDb to point to it, and then uses the wblockClone mechanism to write the array of objects specified by outObjId entities out to the Model Space block table record of the database pointed to by pOutputDb, using basePoint as the base point value for pOutputDb.
The calling application is responsible for deallocating (via the C++ delete operator) the AcDbDatabase object that pOutputDb is set to point to.
Returns Acad::eOk if operation is successful.
See the BASE command documentation in the AutoCAD online help for more information on base point.

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

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-22 11:47 , Processed in 0.312694 second(s), 31 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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