Message 1 of 2
Batch Processing
Not applicable
05-23-2008
07:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Trying to write a really simple batch program. I have a bunch of
(1000's of) drawings in subdirectories that are unitless measure and I
want to change them to Architectural inches.
The script below is failing on the lines marked ">"
The Setvariable method is not available in the dropdown
Is this a missing reference?
Are my declarations all Wonky?
Are there any good examples for this type of processing anyone can share?
Thanks,
PS, in email there is a funky wordwrap issue on the "Set Mydir".. line -
it doesn't look like that in VBA.
--------------------------------------------------------
Sub BatchConvert()
Dim MyFile As File
Dim MyDir As Folder
Dim MySub As Folder
Dim MyFSO As New FileSystemObject
Set MyDir = MyFSO.GetFolder("C:\Documents and
Settings\rennenga\Desktop\test")
For Each MySub In MyDir.Files
For Each MyFile In MySub.Files
If MyFile.Type = "AutoCAD Drawing" Then
> MyFile.SetVariable "INSUNITS", 1
> MyFile.SetVariable "LUNITS", 4
End If
Next
Next
End Sub
(1000's of) drawings in subdirectories that are unitless measure and I
want to change them to Architectural inches.
The script below is failing on the lines marked ">"
The Setvariable method is not available in the dropdown
Is this a missing reference?
Are my declarations all Wonky?
Are there any good examples for this type of processing anyone can share?
Thanks,
PS, in email there is a funky wordwrap issue on the "Set Mydir".. line -
it doesn't look like that in VBA.
--------------------------------------------------------
Sub BatchConvert()
Dim MyFile As File
Dim MyDir As Folder
Dim MySub As Folder
Dim MyFSO As New FileSystemObject
Set MyDir = MyFSO.GetFolder("C:\Documents and
Settings\rennenga\Desktop\test")
For Each MySub In MyDir.Files
For Each MyFile In MySub.Files
If MyFile.Type = "AutoCAD Drawing" Then
> MyFile.SetVariable "INSUNITS", 1
> MyFile.SetVariable "LUNITS", 4
End If
Next
Next
End Sub