cad中解组的命令是什么 cad如何解组快捷键( 二 )


Set acaddwgnow=acadApp.Documents.Open(Dingmurch10PB_06RT_NAME & “\\\\” & Dingmurch10PB_04ARR_FILEARR(W))
For Each Mylayer In acaddwgnow.Layers
Mylayer.Lock=False
Next
Dim SSSS As AcadSelectionSet
Set SSSS=acaddwgnow.SelectionSets.Add(“T1”)
SSSS.Select (acSelectionSetAll)
k=SSSS.Count
”MsgBox k
ReDim objCollection(0 To k – 1) As Object
l=0
For Each zzzz In SSSS
Set objCollection(l)=zzzz
l=l + 1
Next
‘3.4.2打开成品
‘MsgBox “MOVE ” & “成品.dwg”
acaddwgall.Activate
On Error Resume Next
retObjects=acaddwgnow.CopyObjects(objCollection, acaddwgall.ModelSpace)
TPoint(0)=xxx: TPoint(1)=yyy: TPoint(2)=0
If xxx < 500 * 9 * SC Then
xxx=xxx + 500 * SC
ElseIf xxx=500 * 9 * SC Then
xxx=0
yyy=yyy – 300 * SC
End If
For Each MMMM In retObjects
MMMM.Move FPoint, TPoint
Next
‘3.4.3关闭对象
‘MsgBox “Close ” & Dingmurch10PB_04ARR_FILEARR(W)
acaddwgnow.Close
‘3.4.4保存成品
‘acaddwgall.Save
ZoomExtents
‘3.4.5展示进度
Dingmurch02FU_1002_processrate rateratE, 0, ttNo, 0, 0, 100, 0, 100, 0, 100, 1, 1, “ACAD2019_04DWGtoOne” & Dingmurch10PB_04ARR_FILEARR(W)
DoEvents
rateratE=rateratE + 1
End If
Next
acaddwgall.Save
ZoomExtents
T2=Timer – T1
MsgBox “操作完成!” & “耗时” & Format(T2, “0.000”) & “秒”
acadApp.Visible=True
acadApp.WindowState=acMax
Set ACADDWG_obj=Nothing
‘acadApp.Quit
‘Set acadApp=Nothing
Unload Wecho03FM_01
End Sub

推荐阅读