如何判断图元所在空间?
<p>用<font face="Verdana" style="BACKGROUND-COLOR: #ffffff;">sset1.Select acSelectionSetAll选择到的图元包含了模型空间和布局空间的图元,如何判断图元是在哪个layout呢?</font></p><p>谢谢。</p> Sub test()<br/>Dim obj As AcadEntity<br/>ThisDrawing.Utility.GetEntity obj, pt<br/>Dim obj1 As Object<br/>Set obj1 = ThisDrawing.ObjectIdToObject(obj.OwnerID)<br/>MsgBox (obj1.Name)<br/>End Sub<br/> <p><strong><font face="Verdana" color="#61b713">sailorcwx,</font></strong>你太有才了!!!</p><p>非常感谢!</p>
页:
[1]