我发现UCS.XVector——(0,0,0)的夹角是UCS的X轴的转角的2倍?! 注意你这里的XVector的值是WCS里的值,如果你把它当成UCS中的值来划线,当然变成两倍! 下面是用ADDLINE划线,保证其在WCS中进行。 Sub tt() Dim wcsOrigin(0 To 2) As Double Dim XVector As Variant Dim YVector As Variant wcsOrigin(0) = 0: wcsOrigin(1) = 0: wcsOrigin(2) = 0: XVector = ThisDrawing.ActiveUCS.XVector YVector = ThisDrawing.ActiveUCS.YVector ThisDrawing.ModelSpace.AddLine wcsOrigin, XVector ThisDrawing.ModelSpace.AddLine wcsOrigin, YVector ThisDrawing.ModelSpace.AddLine XVector, YVector End Sub |