- Dim D1 As AcadDocument, D2 As AcadDocument, P(2) As Double, BF1(0) As AcadBlockReference, BF2 As Variant
- Set D1 = ActiveDocument
- Set D2 = Documents.Add
- Set BF1(0) = D1.ModelSpace.InsertBlock(P, 块名称, 1, 1, 1, 0)
- BF2 = D1.CopyObjects(BF1, D2.ModelSpace)
- BF1(0).Delete
- D2.Blocks.Item(块名称).Name = 块的新名称
- BF2 = D2.CopyObjects(BF2, D1.ModelSpace)
- BF2(0).Delete
- D2.Close
|