14
52
4
初露锋芒
使用道具 举报
16
909
8
中流砥柱
Sub test() Dim pt1 As Variant Dim pt2 As Variant pt1 = ThisDrawing.Utility.GetPoint(, vbCrLf & "First point:") pt2 = ThisDrawing.Utility.GetPoint(pt1, vbCrLf & "Second point:") For Each Bobj In ThisDrawing.Blocks("aaa") If Bobj.ObjectName = "AcDbLine" Then Bobj.color = acGreen '改为绿色 Bobj.Move pt1, pt2 End If Next ThisDrawing.Regen acActiveViewport End Sub
本版积分规则 发表回复 回帖后跳转到最后一页
微信公众平台
扫描访问手机版
点击图片下载手机App
|关于我们|小黑屋|乐筑天下 繁体中文
GMT+8, 2025-7-5 17:11 , Processed in 0.725145 second(s), 59 queries .
© 2020-2025 乐筑天下
在线时间:10:00-17:00
暂无
扫一扫,关注我们
帮助中心
关于我们
下载APP客户端