- 积分
- 3151
- 明经币
- 个
- 注册时间
- 2005-7-18
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
Dim acadapp As Object
Dim acaddoc As Object
Private Sub Form_Load()
Dim cqb As String
Dim pt As Variant
Dim cqb_wb As Object
cqb = App.Path & "\Wblock\bg1.dwg"
Set acadapp = GetObject(, "AutoCAD.application")
Set acaddoc = acadapp.ActiveDocument
pt = acaddoc.Utility.GetPoint(, "请指插入点")
Set cqb_wb = acaddoc.ModelSpace.InsertBlock(pt, cqb, 1, 1, 1, 0)
cqb_wb.Explode
cqb_wb.Update
'cqb_wb.Delete
End Sub
高手分析一下哪里出现问题了,叩谢
|
|