Message 1 of 2
amviewout

Not applicable
06-16-2003
01:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Does anyone know how to export all layouts from a MDT drawing to single
drawings. I've tryed with SendCommand but it wouldn't work when I use it in
a batch vhere I use script.
This is the script file.
open "c:\drawing\d1.dwg" qsave close
open "c:\drawing\d2.dwg" qsave close
open "c:\drawing\d3.dwg" qsave close
open "c:\drawing\d4.dwg" qsave close
I call the vba macro and it works fine, but not with the script file.
When I use the sendcommand and "-amviewout" the program doesn't execute the
sendcommand.
So How can I do it from VBA without using the SendCommand.
I've seen the object tree in Autodesk McadAuto 2.0 Type Library, but I
can't find the command for "Amviewout".
Here is the code that I want to replace so I don'r need to use SendCommand
ThisDrawing.SendCommand "-amviewout" & vbCr & vbCr & vbCr & Chr(34) & filen
& Chr(34) & vbCr
(the "filen" is the name of the file)
thanks
Henrik
drawings. I've tryed with SendCommand but it wouldn't work when I use it in
a batch vhere I use script.
This is the script file.
open "c:\drawing\d1.dwg" qsave close
open "c:\drawing\d2.dwg" qsave close
open "c:\drawing\d3.dwg" qsave close
open "c:\drawing\d4.dwg" qsave close
I call the vba macro and it works fine, but not with the script file.
When I use the sendcommand and "-amviewout" the program doesn't execute the
sendcommand.
So How can I do it from VBA without using the SendCommand.
I've seen the object tree in Autodesk McadAuto 2.0 Type Library, but I
can't find the command for "Amviewout".
Here is the code that I want to replace so I don'r need to use SendCommand
ThisDrawing.SendCommand "-amviewout" & vbCr & vbCr & vbCr & Chr(34) & filen
& Chr(34) & vbCr
(the "filen" is the name of the file)
thanks
Henrik