Using saveas in VBA

Using saveas in VBA

Anonymous
Not applicable
654 Views
2 Replies
Message 1 of 3

Using saveas in VBA

Anonymous
Not applicable
Hi, im trying to use the saveas command in AutoCAD 2000 VBA
without much success.
the line of code i'm using is:
ThisDrawing.SaveAs "c:\1\test.dwg", acR13_dwg
and it doesn't seem to work.
the drawing is not saved.

where am i going wrong.

thanks in advance

MICK
0 Likes
655 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Can you show some more of your code. So long as the
folder '1' exists, the code you posted works fine here.

 

ThisDrawing.SaveAs "c:\1\test.dwg",
acR13_dwg



style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
Hi,
im trying to use the saveas command in AutoCAD 2000 VBA
without much
success.
the line of code i'm using is:
ThisDrawing.SaveAs
"c:\1\test.dwg", acR13_dwg
and it doesn't seem to work.
the drawing is
not saved.

where am i going wrong.

thanks in advance

MICK

0 Likes
Message 3 of 3

Anonymous
Not applicable
It should work fine like this:

acadApp.ActiveDocument.SaveAs ("filename")

But the filename must be accessible (The dir must exist, the filename must be readonly etc.)
0 Likes