[求助]点坐标转换
<p>其实就是在图纸空间的一个视口上(非激活进入)点选一点,如何得到这点在模型空间WCS真实坐标?</p><p>trans函数看的不明白,不知道后面的参数应该是几?</p> <p>Public Sub VPCoords(vp As AcadPViewport, LL, ur)</p><p> Dim min, max, oldMode As Boolean<br/> <br/> vp.GetBoundingBox min, max<br/> oldMode = ThisDrawing.MSpace<br/> ThisDrawing.MSpace = True<br/> LL = ThisDrawing.Utility.TranslateCoordinates(min, acPaperSpaceDCS, acDisplayDCS, False)<br/> ur = ThisDrawing.Utility.TranslateCoordinates(max, acPaperSpaceDCS, acDisplayDCS, False)<br/> ThisDrawing.MSpace = oldMode<br/> <br/>End Sub</p><p>请参照这个</p>
页:
[1]