[求助]getobject 正确选择问题
<div class="Section1" style="LAYOUT-GRID:15.6pt none;"><p class="MsoNormal"><font face="宋体" color="#008000" size="3">开<span lang="EN-US">2个以上CAD<p></p></span></font></p><p class="MsoNormal"><font face="宋体" color="#008000" size="3">Getobject </font><font face="宋体" color="#008000" size="3">总是得到第一个<span lang="EN-US"><p></p></span></font></p><p class="MsoNormal"><font face="宋体" color="#008000" size="3">有什么办法能得到自己想要的那个<span lang="EN-US">ACAD对象?<p></p></span></font></p></div> <p>将acad做为参数传递</p><p>如: </p><p>public double[] GetOtherPt(AcadDocument cadDoc, double[] pt)<br/> {<br/> try<br/> {<br/> object objPt = (object)pt;<br/> object objOtherPt = cadDoc.Utility.GetPoint(Type.Missing, "请选择另一点:");<br/> double[] OtherPt = (double[])objOtherPt;<br/> return OtherPt;<br/> }<br/> catch<br/> {<br/> return null;<br/> }<br/> }</p>
页:
[1]