- 积分
- 329
- 明经币
- 个
- 注册时间
- 2003-5-12
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
楼主 |
发表于 2003-5-17 12:43:00
|
显示全部楼层
efan版主,哪出毛病了呢?
efan版主,我把代码写上去,但在运行的时候提示信息说没有定义子程序后函数,这是怎么回事?还有,下面这段代码是让用户选择直线(或其他的图形对象_,
再将所选的直线颜色改变为绿色.代码如下:
Sub GetUsersSelection()
Dim UsersSelection As AcadSelectionSet
Dim DrawingSelected As AcadEntity
'delete the selection set if it already exists
With Thisdrawing
On Error Resume Next
.SelectionSets("CurrentSelection").Delete
'get selection from user
MsgBox "Select objects! Hit Enter to finish!"
Set UsersSelection = thisdrawing
.Selectionsets.Add("CurrentSelection")
UsersSelection.SelectOnScreen
For Each DrawingSelected In UsersSelection
DrawingSelected.Color = acGreen
Next
End With
End Sub
题目上说"输入该宏代码至Line Input的Module1中"是什么意思?
另外!这个代码的图还是上次给您的图! |
|