- 积分
- 299
- 明经币
- 个
- 注册时间
- 2003-6-6
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
要在选择集中过滤出内容为“A“的文本,我的程序如下,不知道为何出错,请执教
Sub test()
Dim Myss As AcadSelectionSet
Set Myss = ThisDrawing.SelectionSets.Add("Myss")
Dim Mode As Integer
Mode = acSelectionSetWindow
Dim Point1, point2 As Variant
Point1 = ThisDrawing.Utility.GetPoint(, "Select the first point")
point2 = ThisDrawing.Utility.GetCorner(Point1, "Select second point")
Dim gpCode(0 To 2) As Integer
Dim DataValue(0 To 2) As Variant
gpCode(0) = 0
DataValue(0) = "Text"
gpCode(1) = -4
DataValue(1) = "="
gpCode(2) = 1
DataValue(2) = "A"
Myss.Select acSelectionSetWindow, Point1, point2, gpCode, DataValue
End Sub
是不是实体对象的公共组码不对呀,能提供完整的DXF组码吗?谢先! |
|