Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Please see the attached video and code sample and note the different results.
The correct result is what 2024 outputs, 2025 seems to be ignoring the line to set the display to wireframe???
Can someone help me understand why the 2 version provide different results when running the same code?
@johnsonshiue or @MjDeck can you confirm that this is not working as expected, or point out why we'd get 2 different results?
We have a customer needing this functionality and we need to find some other solution is this is indeed a bug, but I thought/hoped maybe I was misunderstanding something???
Dim m_Doc = ThisApplication.ActiveEditDocument oFolder = "C:\Temp\Part Preview\" Dim oFileName = oFolder & "Thumb Nail Pic.jpg" Dim m_Camera As Inventor.Camera m_Camera = ThisApplication.TransientObjects.CreateCamera() m_Camera = ThisApplication.TransientObjects.CreateCamera() If m_Doc.DocumentType = DocumentTypeEnum.kPartDocumentObject Then m_Camera.SceneObject = DirectCast(m_Doc, PartDocument).ComponentDefinition Else m_Camera.SceneObject = DirectCast(m_Doc, AssemblyDocument).ComponentDefinition End If 'get current settings m_Disp3D = ThisApplication.DisplayOptions.Show3DIndicator m_PrevMode = ThisApplication.DisplayOptions.NewWindowDisplayMode ThisApplication.DisplayOptions.NewWindowDisplayMode = DisplayModeEnum.kWireframeNoHiddenEdges ThisApplication.DisplayOptions.Show3DIndicator = False m_Camera.Perspective = False m_Camera.ViewOrientationType = Inventor.ViewOrientationTypeEnum.kIsoTopLeftViewOrientation m_Camera.Perspective = False m_Camera.ViewOrientationType = Inventor.ViewOrientationTypeEnum.kIsoTopLeftViewOrientation m_Camera.Fit() m_Camera.ApplyWithoutTransition() Try m_Camera.SaveAsBitmap(oFileName, 600, 600, ThisApplication.TransientObjects.CreateColor(255, 255, 255)) Catch ex As Exception MsgBox(ex.Message) Finally 'reset options ThisApplication.DisplayOptions.NewWindowDisplayMode = m_PrevMode End Try
Solved! Go to Solution.