Message 1 of 16

Not applicable
10-30-2014
06:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
If it's possible, I'd like to create an iLogic rule to batch export thumbnail/isometric camera images of an entire folder. the format needs to be .jpeg because the images will be imported into another program. It looked to me like task scheduler would only be able to do PDFs.
Cound I run this from an external rule using a FOR loop?
This is sort of how I was thinking about going about it, but obviously I don't know what to do for the oFolderOccurance part:
iLogicStart Dim sSaveLocation As String sSaveLocation = "Z:\123fakepath\_IMAGES" Dim sMessageBoxResult As String = InputBox("Save Location", "Batch Image Export", sSaveLocation) If System.IO.FilePath.Exists(sMessageBoxResult) Then Try Dim oFolderOccurance As Document For Each oOcc In sMessageBoxResult oFolderOccurance.Open() Dim sImageName As String = iProperties.Value("Project","Description") oCamera = InventorVb.Application.ActiveView.Camera oCamera.fit oCamera.apply InventorVb.Application.ActiveView.SaveAsBitmap(sImageName,1200,800) oFolderOccurance.Close() Next Catch MessageBox.Show(oFolderOccurance.Name & "Failed to generate image.", "Error") End Try Else MessageBox.Show(sSaveLocation & vbLf & "Does not exist.", "Error") Goto iLogicStart End If
Any help is appreciated! Thanks!
Solved! Go to Solution.