- 积分
- 496
- 明经币
- 个
- 注册时间
- 2004-3-12
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
楼主 |
发表于 2004-3-28 21:19:00
|
显示全部楼层
关键问题就是我不知如何用程序得到该块,并修改其中文本! 举例说,我是用类似以下程序DRAW的块: Dim B As acadblock Dim BR As AcadBlockReference Dim SPnt(0 To 2), EPnt(0 To 2) As Double SPnt(0) = 0: SPnt(1) = 0: SPnt(2) = 0 EPnt(0) = 0: EPnt(1) = 50: EPnt(2) = 0 Dim line As AcadLine Dim text As AcadText Set line = B.AddLine(SPnt, EPnt) Set text = B.AddText("标题栏文本", SPnt, 5) Set BR = ThisDrawing.ModelSpace.InsertBlock(ePnt, "TitleBar", 1#, 1#, 1#, 0) 想用另外一个类似以下程序得到该块: Dim BlkRef As AcadBlockReference Dim Pnt As Variant Dim Blk As AcadEntity ThisDrawing.Utility.GetEntity Blk, Pnt, "Get Block:" ...... 我是新手,能否给写出一些关键的代码??谢谢了!! |
|