Dim InsertPoint(0 To 2) As Double Dim insertedBlock As AcadExternalReference Dim tempBlock As AcadBlock Dim PathName As String InsertPoint(0) = 1 InsertPoint(1) = 1 InsertPoint(2) = 0 PathName = "D:/AutoCAD 2006/Sample/Car.dwg" Set insertedBlock = ThisDrawing.ModelSpace. _ AttachExternalReference(PathName, "XREF_IMAGE", _ InsertPoint, 1, 1, 1, 0, False)
Dim insertedBlock As AcadExternalReference
Dim tempBlock As AcadBlock
Dim PathName As String InsertPoint(0) = 1
InsertPoint(1) = 1
InsertPoint(2) = 0
PathName = "D:/AutoCAD 2006/Sample/Car.dwg" Set insertedBlock = ThisDrawing.ModelSpace. _
AttachExternalReference(PathName, "XREF_IMAGE", _
InsertPoint, 1, 1, 1, 0, False)