l怎么提取动态块中的自定义特性?
如题:l怎么提取动态块中的自定义特性?想到问题的时候可以先搜索一下相关的帖子,印象中论坛里关于这个问题有不少,先找找看吧 谢谢回复,
mj,xd,度娘搜了好几百页了,没找着,
注意是动态块的特性。
entget 出不来,查330物体也没有 Gets the properties of the dynamic block.
Signature
object.GetDynamicBlockProperties
object
BlockRef, MInsertBlock
The object or objects this method applies to.
Remarks
BlockRef.GetDynamicBlockProperties returns a collection of DynamicBlockReferenceProperty objects if the block reference is a dynamic block containing custom properties.
Note To access this method, use the IAcadBlockReference2 or IAcadMInsertBlock2 interface.
(vlax-get-property (car(vlax-safearray->list(vlax-variant-value(vla-getDynamicBlockProperties (vlax-ename->vla-object(car(entsel)))))))'PropertyName) (vlax-variant-value(vlax-get-property (car(vlax-safearray->list(vlax-variant-value(vla-getDynamicBlockProperties (vlax-ename->vla-object(car(entsel)))))))'value)) 太感谢了,vla-getDynamicBlockProperties这个函数在哪儿查到? 2006版本 开发文档 atcive x VBA的 -方法. 动态块用lisp来操作太困难了 动态块用lisp来操作有点蹩脚
页:
[1]