《菜鸟提问》有没有一个函数可以把一张图纸中的内容复制到另外一张图纸中呢?
本帖最后由 HGHG011 于 2016-3-4 11:26 编辑如我打开两张图纸
实现批量操作复制其中一张图纸中的图元,复制到另一张图纸内
有人知道吗?
求大神
可以在追加悬赏,求解决,或者提供可以实现的思路也可以啊
跪求啊~~万能的明经 在一张图里entget另一图里entmake可以吗
图之间传值可以用外部临时文件或者vl-bb-set之类的。。 vlisp,我想是可以的 zzyong00 发表于 2016-2-29 13:49 static/image/common/back.gif
vlisp,我想是可以的
求方法
谢谢
直接选择复制、粘贴即可 Gu_xl 发表于 2016-2-29 14:28 static/image/common/back.gif
直接选择复制、粘贴即可
额,首先先谢谢版主,可能我表达不是很清楚
我的意思是我需要批量的复制和粘贴,怎么在两张图纸之间进行转换呢? 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.
danxingpen 发表于 2016-2-29 16:07 static/image/common/back.gif
CopyObjects Method
Duplicates multiple objects (deep cloning).
不是很懂,不知道怎么实现
这个是什么语言,lisp能运行吗?
能否给个例子
这个可能我得研究研究
谢谢你 哪是vba,与vba对应的是vlisp 求帮忙啊 ~~~~
页:
[1]