为了画图方便。使用了用户自定义坐标,而且已经成功的移动了坐标。但是再作图的时候,为什么还是以原坐标为基准啊?下面是代码一部分,大家看看:
Public Sub UCS_Down() ' 定义所需的变量 Dim ucsObj As AcadUCS Dim origin(0 To 2) As Double Dim xAxisPnt(0 To 2) As Double Dim yAxisPnt(0 To 2) As Double Dim downBaseP3(0 To 2) As Double ' 定义UCS点 origin(0) = GridWidth / 2: origin(1) = 2 * GridPerHeight: origin(2) = 0 xAxisPnt(0) = GridWidth / 2 + 1000#: xAxisPnt(1) = 2 * GridPerHeight: xAxisPnt(2) = 0 yAxisPnt(0) = GridWidth / 2: yAxisPnt(1) = 2 * GridPerHeight + 1000#: yAxisPnt(2) = 0