- 积分
- 591
- 明经币
- 个
- 注册时间
- 2004-11-11
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
本帖最后由 作者 于 2005-3-27 16:39:14 编辑
Sub test_XY_UCS() Dim myUCS As AcadUCS, P0(2) As Double, P1(2) As Double, P2(2) As Double P1(1) = 1: P2(0) = 1 Set myUCS = ThisDrawing.UserCoordinateSystems.Add(P0, P1, P2, "abc") ThisDrawing.ActiveUCS = myUCS
Dim LineObj As AcadLine Dim pt1(2) As Double, pt2(2) As Double pt2(1) = 1
Dim ucspt1, ucspt2 As Variant ucspt1 = ThisDrawing.Utility.TranslateCoordinates(pt1, acUCS, acWorld, False) ucspt2 = ThisDrawing.Utility.TranslateCoordinates(pt2, acUCS, acWorld, False) Set LineObj = ThisDrawing.ModelSpace.AddLine(ucspt1, ucspt2)
dim aaa as acadtext set aaa=ThisDrawing.ModelSpace.addtext("明经cad",p1,5) End Sub
以上程序,想在p1点上插入"明经cad"文本,但得出来的确是"dac经明",文本被反向了,版主可以运行下这程序,看看就更明白了. 请问该怎么解决?谢谢!
|
|