GetxData
<DIV>请问:对于对象的SetXData方法,其参数有两个:如下:</DIV><DIV> DataType(0)=1001:DataType(1)=1000:xData="SOUTH"</DIV>
<DIV>则可以这样加入扩展数据:</DIV>
<DIV> Object.SetxData DataType, xData</DIV>
<DIV>而对于Object.GetxData 方法,我就不知道怎么个用法?请高手指教!</DIV> <p class="syntax">object.GetXData AppName, XDataType, XDataValue
</p>
<p class="element">Object</p>
<p class="element-desc"><a href="all_drawing_objects.htm" target="_blank" >All Drawing Objects</a>
, <a href="idh_attributeref_object.htm" target="_blank" >AttributeReference</a>, <a href="idh_block_object.htm" target="_blank" >Block</a>, <a href="idh_dictionary_object.htm" target="_blank" >Dictionary</a>, <a href="idh_dimstyle_object.htm" target="_blank" >DimStyle</a>, <a href="idh_group_object.htm" target="_blank" >Group</a>, <a href="idh_layer_object.htm" target="_blank" >Layer</a>,
<a href="idh_linetype_object.htm" target="_blank" >Linetype</a>, <a href="idh_plotconfigurations_collection.htm" target="_blank" >PlotConfigurations</a>, <a href="idh_registeredapp_object.htm" target="_blank" >RegisteredApplication</a>, <a href="idh_textstyle_object.htm" target="_blank" >TextStyle</a>, <a href="idh_ucs_object.htm" target="_blank" >UCS</a>, <a href="idh_view_object.htm" target="_blank" >View</a>, <a href="idh_viewport_object.htm" target="_blank" >Viewport</a>; <a href="idh_xrecord_object.htm" target="_blank" >XRecord</a><br>The object or objects this method
applies to.
</p>
<p class="element">AppName</p>
<p class="element-desc">String; input-only<br>A NULL string will return all the
data attached to the object, regardless of the application that created it.
Supplying an application name will return only the data that was created by the
specified application.
</p>
<p class="element">XDataType</p>
<p class="element-desc">Variant (array of shorts); output-only
</p>
<p class="element">XDataValue</p>
<p class="element-desc">Variant (array of variants); output-only </p>
谢谢并请教
十分谢谢!但你所说的例子,置顶的"对象模型"中有,并翻译成了中文,我现在的问题是我要获取后面那两个参数的数据并显示出来,就不知道咋整了!请你明示,请用中文,我不懂英文. 你可以试试:<br>object.GetXData “”, XDataType, XDataValue ‘ XDataType和XDataValue 都是Variant的<br>
for i=0 to Lbound( XDataType)<br>
debug.print XDataType(i)<br>
next<br>
XDataValue同理。 我手上没有含Xdata的图,没法调试。所以不敢保证这段代码可行。你试试看吧。<br>
<br>
感谢
<DIV>十分感谢!我不知道XDataType(i)是有下标的.问题解决了!</DIV><DIV>此外,我昨天就要感谢的,但当时半天上不了网.特致歉意!<BR></DIV>
页:
[1]