[求助]关于VBA方式利用ObjectDbx在当前图形中插入其它未打开的图形中的图块的问题?
请问:VBA方式利用ObjectDbx在当前图形中插入其它未打开的图形中的图块时,能否将图块中的一些“定义属性标记”进行赋值,然后再进行插入?<BR>怎样用VBA代码实现? 插入后再改<P class=Heading-2>Signature
<P class=syntax>RetVal = object.GetAttributes()
<P class=element>Object
<P class=element-desc><A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202005\help\acadauto.chm::/idh_blockref_object.htm" target="_blank" >BlockRef</A>, <A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202005\help\acadauto.chm::/idh_externalreference_object.htm" target="_blank" >ExternalReference</A>, <A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202005\help\acadauto.chm::/idh_minsertblock_object.htm" target="_blank" >MInsertBlock</A><BR>The object or objects this method applies to.
<P class=element>RetVal
<P class=element-desc>Variant (array of AttributeReference objects)<BR>The array of <A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202005\help\acadauto.chm::/idh_attributeref_object.htm" target="_blank" >AttributeReference</A> objects. 斑竹能不能说详细一点,谢谢! object.GetAttributes获得插入块参照的属性数组,再历遍该数组,给属性的TextString属性赋值
谢谢斑竹,已经解决了!
谢谢斑竹,已经解决了!
页:
[1]