明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 909|回复: 9

[已解答] 《菜鸟提问》有没有一个函数可以把一张图纸中的内容复制到另外一张图纸中呢?

[复制链接]
发表于 2016-2-29 12:11 | 显示全部楼层 |阅读模式
20明经币
本帖最后由 HGHG011 于 2016-3-4 11:26 编辑

如我打开两张图纸
实现批量操作复制其中一张图纸中的图元,复制到另一张图纸内
有人知道吗?
求大神
可以在追加悬赏,求解决,或者提供可以实现的思路也可以啊
跪求啊~~万能的明经

最佳答案

查看完整内容

在一张图里entget另一图里entmake可以吗 图之间传值可以用外部临时文件或者vl-bb-set之类的。。
发表于 2016-2-29 12:11 | 显示全部楼层
在一张图里entget另一图里entmake可以吗

图之间传值可以用外部临时文件或者vl-bb-set之类的。。

点评

算了,看来没有什么好方法,分给你吧  发表于 2016-3-5 11:34
回复

使用道具 举报

发表于 2016-2-29 13:49 | 显示全部楼层
vlisp,我想是可以的
回复

使用道具 举报

 楼主| 发表于 2016-2-29 14:16 | 显示全部楼层
zzyong00 发表于 2016-2-29 13:49
vlisp,我想是可以的

求方法
谢谢
回复

使用道具 举报

发表于 2016-2-29 14:28 | 显示全部楼层
直接选择复制、粘贴即可
回复

使用道具 举报

 楼主| 发表于 2016-2-29 14:31 | 显示全部楼层
Gu_xl 发表于 2016-2-29 14:28
直接选择复制、粘贴即可

额,首先先谢谢版主,可能我表达不是很清楚
我的意思是我需要批量的复制和粘贴,怎么在两张图纸之间进行转换呢?
回复

使用道具 举报

发表于 2016-2-29 16:07 | 显示全部楼层
CopyObjects Method

Duplicates multiple objects (deep cloning).

RetVal = object.CopyObjects(Objects[, Owner][, IDPairs])

Object

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

Objects

Variant (array of objects); input-only
The array of primary objects to be copied. All the objects must have the same owner, and the owner must belong to the database or document that is calling this method.

Owner

Variant (a single object); input-only; optional
The new owner for the copied objects. If no owner is specified, the objects will be created with the same owner as the objects in the Objects array.

IDPairs

Variant (array of IDPair objects); input-output; optional
Information on what happened during the copy and translation process.
Input: an empty variant.
Output: an array of IDPair objects.

RetVal

Variant (array of objects)
An array of newly created duplicate objects. Only primary objects are returned in this array. For more information on what occured during the CopyObjects operation, or a list of objects owned by primary objects that were also copied, consult the IDPairs array.

Remarks

To copy objects to another open drawing, set the Owner parameter to the other drawing's model space.

During the CopyObjects operation, objects that are owned or referenced by the primary objects in the Objects parameter will also be copied.

NOTE You cannot execute this method while simultaneously iterating through a collection. An iteration will open the work space for a read-only operation, while this method attempts to perform a read-write operation. Complete any iteration before you call this method.

评分

参与人数 1明经币 +1 收起 理由
HGHG011 + 1 赞一个!

查看全部评分

回复

使用道具 举报

 楼主| 发表于 2016-2-29 16:47 | 显示全部楼层
danxingpen 发表于 2016-2-29 16:07
CopyObjects Method

Duplicates multiple objects (deep cloning).

不是很懂,不知道怎么实现
这个是什么语言,lisp能运行吗?
能否给个例子
这个可能我得研究研究
谢谢你
回复

使用道具 举报

发表于 2016-2-29 22:18 | 显示全部楼层
哪是vba,与vba对应的是vlisp
回复

使用道具 举报

 楼主| 发表于 2016-3-4 11:26 | 显示全部楼层
求帮忙啊 ~~~~
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-5 00:53 , Processed in 0.359429 second(s), 29 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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