Message 1 of 13
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello everyone.
I created a code based on the following topic and ChatGPT.
Sub Main() Dim saveName As String Dim oDoc As PartDocument oDoc = ThisApplication.ActiveDocument Dim oActiveView As View oActiveView = ThisApplication.ActiveView Dim oCamera As Camera oCamera = oActiveView.Camera oCamera.ViewOrientationType = kIsoTopRightViewOrientation oCamera.ApplyWithoutTransition ThisApplication.ActiveView.Fit saveName = Left$(oDoc.FullDocumentName, Len(oDoc.FullDocumentName) -4) Dim resolutionX As Integer Dim resolutionY As Integer resolutionX = 350 resolutionY = 270 Call oActiveView.SaveAsBitmap(saveName & ".bmp", resolutionX, resolutionY) End Sub
With this code, I currently have two issues.
- I cannot run this code in the assembly file. How can we adjust the code to work in assembly files as well?
- The quality of the images I'm getting as output is poor. It's important for the output images to have dimensions of 350x270 px, but they look bad at this size. Can we fix this?
I think that's all for now. If I can find solutions to these, I'd like to add the functionality to extract images from tables as well, but that's a job for later, I guess. But if you have any knowledge about this, please share.
Solved! Go to Solution.