请教VLA-ITEM是什么意思?
初学VLISP,向各位高手请教了! 本帖最后由 作者 于 2007-2-19 9:48:47 编辑 <br /><br /> <p class="1-liner">获取集合、组或选择集中给定索引的成员对象。</p><p class="h1-access"><a href="http://www.mccad.net/object/acad2004/item_see_also.htm">参阅</a> | <a href="http://www.mccad.net/object/acad2004/ex_item.htm">示例</a></p><p class="Heading-2">语法 </p><p class="syntax">RetVal = object.Item(Index) </p><p class="element">Object</p><p class="element-desc"><a href="http://www.mccad.net/object/acad2004/all_collection_objects.htm">All Collections</a>, <a href="http://www.mccad.net/object/acad2004/idh_group_object.htm">Group</a>, <a href="http://www.mccad.net/object/acad2004/idh_selectionset_object.htm">SelectionSet</a><br/>使用该方法的对象。 </p><p class="element">Index</p><p class="element-desc">Variant[变体]; 仅用于输入<br/>要查询的集合成员项的索引位置。<br/>索引必须为整数或字符串。如果为整数,索引必须在 0 和 N-1 间。这里 N 为集合或选择集的对象数量。 </p><p class="element">RetVal</p><p class="element-desc">Object[对象]<br/>在集合或选择集中给定索引位置的对象。 </p><p class="Heading-2">说明 </p><p class="body-code-begin">该方法支持使用字符串。例如,如果用以下语句创建了名称为 BLOCK1 的块:</p><pre class="Code">Set block1 = Blocks.Add("BLOCK1")<br/></pre><p class="body-code-begin">则可通过以下语句引用该对象:</p><pre class="Code">Set whichblock = Blocks.Item("BLOCK1")<br/></pre><p class="body">注意 Item 方法在用于 SelectionSets 集合时为区分大小写;而对于其它集合则不区分大小写。 </p><p class="body">Dictionaries: 该方法的返回值判刑为 IAcadObject。这里允许用户从词典集合中找到类型不是 AcadDictionary 的命名对象。</p> 雪山飞狐_lzh 发表于 2007-2-19 09:48本帖最后由 作者 于 2007-2-19 9:48:47 编辑获取集合、组或选择集中给定索引的成员对象。参阅 | 示例语 ...
受教了,学习学习
页:
[1]