本帖最后由 guangpengg 于 2024-5-13 10:34 编辑
通过VBA创建引线,如果终点在起点的左侧, 所示文字方向不正确,如图所示,不知为何,期待有大神能够指教,谢谢!
代码如下: AcadDoc = AcadApp.ActiveDocument; AcadMLeader acadM; double[] points = new double[6]; points[0] = 1000; points[1] = 1000; points[2] = 0; points[3] = 900; points[4] = 1100; points[5] = 0; int i; acadM = AcadDoc.ModelSpace.AddMLeader(points, out i); acadM.TextString = "注释";
|