document problem(VBA)

document problem(VBA)

Anonymous
Not applicable
302 Views
2 Replies
Message 1 of 3

document problem(VBA)

Anonymous
Not applicable
Dim path As String
Dim i As Integer
For i = 0 To 10
Layer = "e:\" & i & ".dwg"
Dim Doc As AcadDocument
Set Doc = ThisDrawing.Application.Documents.Add()
Doc.SaveAs path
Doc.Close False
next
CAD08 failed,only set up one document,then not run,however 04 and 09 OK,
please help
thanks very much~
0 Likes
303 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
???

Dim I As Integer
Dim Path As String
Dim Doc As AcadDocument

For I = 1 To 10
Path = "C:\" & I & ".dwg"

Set Doc = Application.Documents.Add

Doc.SaveAs Path

Doc.Close
Next I

Joe ...


wrote in message news:5981591@discussion.autodesk.com...
Dim path As String
Dim i As Integer
For i = 0 To 10
Layer = "e:\" & i & ".dwg"
Dim Doc As AcadDocument
Set Doc = ThisDrawing.Application.Documents.Add()
Doc.SaveAs path
Doc.Close False
next
CAD08 failed,only set up one document,then not run,however 04 and 09 OK,
please help
thanks very much~
0 Likes
Message 3 of 3

Anonymous
Not applicable
to set up document(dwg) in disc E,it do not works in CAD08
why
0 Likes