全部版块 我的主页
论坛 提问 悬赏 求职 新闻 读书 功能一区 经管文库(原现金交易版)
144 0
2025-01-19
创建对象
Sub Ch2_FindFirstEntity()
'
本例返回模型空间中的第一个图元
On Error Resume Next
Dim entity As AcadEntity
If ThisDrawing.ModelSpace.count <> 0 Then
Set entity = ThisDrawing.ModelSpace.Item(0)
MsgBox entity.ObjectName + _
" is the first entity in model space."
否则MsgBox "There are no objects in model space."
End If
End Sub
Sub Ch2_IterateLayer()
'
本例遍历集合,并显示集合中所有图层的名称:
On Error Resume Next
Dim I As Integer
Dim msg As String
msg = ""
For I = 0 To ThisDrawing.Layers.count - 1
msg = msg + ThisDrawing. ...
附件列表

CAD实用VBA.doc

大小:38.98 KB

只需: RMB 2 元  马上下载

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群