这没用。我试着把angbase设为0,但还是一样。
对不起,我忘了在我的前一个线程中粘贴代码。代码有问题吗?!
- Dim Line As AcadLine
- Dim r As Double
- Dim theta As Double
- Pnt = ThisDrawing.Utility.GetPoint(, "select point")
- InsertionPoint(0) = Pnt(0)
- InsertionPoint(1) = Pnt(1)
- InsertionPoint(2) = 0
- r = 2 'Suppose r = 2 and theta = 0 radians
- theta = 0
- polarpnt = ThisDrawing.Utility.PolarPoint(InsertionPoint, theta, r)
-
- Set Line = ThisDrawing.ModelSpace.AddLine(InsertionPoint, polarpnt)
-
- Dim pText As AcadText
- degree = (theta * 180) / 3.14
- Set pText = ThisDrawing.ModelSpace.AddText(degree, (Line.EndPoint), 0.3)
|