<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Inventor 2025 different results with same iLogic rule in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-2025-different-results-with-same-ilogic-rule/m-p/12705710#M11312</link>
    <description>&lt;P&gt;Hi Curtis - so far I haven't been able to get the rule to produce a wireframe image on Inventor 2024. &lt;BR /&gt;Which exact version of 2024 are you running? Have you tried it on another machine?&lt;BR /&gt;I'm not sure if the Camera is supposed to follow the display settings for new windows. After all, it's not a window. I'm looking into it.&lt;BR /&gt;Maybe you could use a View instead of a Camera?&lt;/P&gt;</description>
    <pubDate>Fri, 12 Apr 2024 22:58:09 GMT</pubDate>
    <dc:creator>MjDeck</dc:creator>
    <dc:date>2024-04-12T22:58:09Z</dc:date>
    <item>
      <title>Inventor 2025 different results with same iLogic rule</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-2025-different-results-with-same-ilogic-rule/m-p/12705647#M11311</link>
      <description>&lt;P&gt;Please see the attached video and code sample and note the different results.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The correct result is what 2024 outputs, 2025 seems to be ignoring the line to set the display to wireframe???&lt;BR /&gt;&lt;BR /&gt;Can someone help me understand why the 2 version provide different results when running the same code?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/486618"&gt;@johnsonshiue&lt;/a&gt;&amp;nbsp;or&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/537534"&gt;@MjDeck&lt;/a&gt;&amp;nbsp;can you confirm that this is not working as expected, or point out why we'd get 2 different results?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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???&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6350805804112w400h225r694" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6350805804112" data-account="6057940548001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6057940548001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6350805804112w400h225r694');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://forums.autodesk.com/t5/video/gallerypage/video-id/6350805804112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;m_Doc&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveEditDocument&lt;/SPAN&gt;

&lt;SPAN&gt;oFolder&lt;/SPAN&gt; = &lt;SPAN&gt;"C:\Temp\Part Preview\"&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oFileName&lt;/SPAN&gt; = &lt;SPAN&gt;oFolder&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;"Thumb Nail Pic.jpg"&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;m_Camera&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN&gt;Camera&lt;/SPAN&gt;
&lt;SPAN&gt;m_Camera&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;TransientObjects&lt;/SPAN&gt;.&lt;SPAN&gt;CreateCamera&lt;/SPAN&gt;()

&lt;SPAN&gt;m_Camera&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;TransientObjects&lt;/SPAN&gt;.&lt;SPAN&gt;CreateCamera&lt;/SPAN&gt;()
&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;m_Doc&lt;/SPAN&gt;.&lt;SPAN&gt;DocumentType&lt;/SPAN&gt; = &lt;SPAN&gt;DocumentTypeEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kPartDocumentObject&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
	&lt;SPAN&gt;m_Camera&lt;/SPAN&gt;.&lt;SPAN&gt;SceneObject&lt;/SPAN&gt; = &lt;SPAN&gt;DirectCast&lt;/SPAN&gt;(&lt;SPAN&gt;m_Doc&lt;/SPAN&gt;, &lt;SPAN&gt;PartDocument&lt;/SPAN&gt;).&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;
&lt;SPAN&gt;Else&lt;/SPAN&gt;
	&lt;SPAN&gt;m_Camera&lt;/SPAN&gt;.&lt;SPAN&gt;SceneObject&lt;/SPAN&gt; = &lt;SPAN&gt;DirectCast&lt;/SPAN&gt;(&lt;SPAN&gt;m_Doc&lt;/SPAN&gt;, &lt;SPAN&gt;AssemblyDocument&lt;/SPAN&gt;).&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;

&lt;SPAN&gt;'get current settings&lt;/SPAN&gt;
&lt;SPAN&gt;m_Disp3D&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;DisplayOptions&lt;/SPAN&gt;.&lt;SPAN&gt;Show3DIndicator&lt;/SPAN&gt;
&lt;SPAN&gt;m_PrevMode&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;DisplayOptions&lt;/SPAN&gt;.&lt;SPAN&gt;NewWindowDisplayMode&lt;/SPAN&gt;

&lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;DisplayOptions&lt;/SPAN&gt;.&lt;SPAN&gt;NewWindowDisplayMode&lt;/SPAN&gt; = &lt;SPAN&gt;DisplayModeEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kWireframeNoHiddenEdges&lt;/SPAN&gt;
&lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;DisplayOptions&lt;/SPAN&gt;.&lt;SPAN&gt;Show3DIndicator&lt;/SPAN&gt; = &lt;SPAN&gt;False&lt;/SPAN&gt;
&lt;SPAN&gt;m_Camera&lt;/SPAN&gt;.&lt;SPAN&gt;Perspective&lt;/SPAN&gt; = &lt;SPAN&gt;False&lt;/SPAN&gt;

&lt;SPAN&gt;m_Camera&lt;/SPAN&gt;.&lt;SPAN&gt;ViewOrientationType&lt;/SPAN&gt; = &lt;SPAN&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN&gt;ViewOrientationTypeEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kIsoTopLeftViewOrientation&lt;/SPAN&gt;
&lt;SPAN&gt;m_Camera&lt;/SPAN&gt;.&lt;SPAN&gt;Perspective&lt;/SPAN&gt; = &lt;SPAN&gt;False&lt;/SPAN&gt;
&lt;SPAN&gt;m_Camera&lt;/SPAN&gt;.&lt;SPAN&gt;ViewOrientationType&lt;/SPAN&gt; = &lt;SPAN&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN&gt;ViewOrientationTypeEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kIsoTopLeftViewOrientation&lt;/SPAN&gt;
&lt;SPAN&gt;m_Camera&lt;/SPAN&gt;.&lt;SPAN&gt;Fit&lt;/SPAN&gt;()
&lt;SPAN&gt;m_Camera&lt;/SPAN&gt;.&lt;SPAN&gt;ApplyWithoutTransition&lt;/SPAN&gt;()

&lt;SPAN&gt;Try&lt;/SPAN&gt;
	&lt;SPAN&gt;m_Camera&lt;/SPAN&gt;.&lt;SPAN&gt;SaveAsBitmap&lt;/SPAN&gt;(&lt;SPAN&gt;oFileName&lt;/SPAN&gt;, 600, 600, &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;TransientObjects&lt;/SPAN&gt;.&lt;SPAN&gt;CreateColor&lt;/SPAN&gt;(255, 255, 255))
&lt;SPAN&gt;Catch&lt;/SPAN&gt; &lt;SPAN&gt;ex&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Exception&lt;/SPAN&gt;
	&lt;SPAN&gt;MsgBox&lt;/SPAN&gt;(&lt;SPAN&gt;ex&lt;/SPAN&gt;.&lt;SPAN&gt;Message&lt;/SPAN&gt;)
&lt;SPAN&gt;Finally&lt;/SPAN&gt;
	&lt;SPAN&gt;'reset options&lt;/SPAN&gt;
	&lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;DisplayOptions&lt;/SPAN&gt;.&lt;SPAN&gt;NewWindowDisplayMode&lt;/SPAN&gt; = &lt;SPAN&gt;m_PrevMode&lt;/SPAN&gt;
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Try&lt;/SPAN&gt;

&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 22:22:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-2025-different-results-with-same-ilogic-rule/m-p/12705647#M11311</guid>
      <dc:creator>Curtis_W</dc:creator>
      <dc:date>2024-04-12T22:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor 2025 different results with same iLogic rule</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-2025-different-results-with-same-ilogic-rule/m-p/12705710#M11312</link>
      <description>&lt;P&gt;Hi Curtis - so far I haven't been able to get the rule to produce a wireframe image on Inventor 2024. &lt;BR /&gt;Which exact version of 2024 are you running? Have you tried it on another machine?&lt;BR /&gt;I'm not sure if the Camera is supposed to follow the display settings for new windows. After all, it's not a window. I'm looking into it.&lt;BR /&gt;Maybe you could use a View instead of a Camera?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 22:58:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-2025-different-results-with-same-ilogic-rule/m-p/12705710#M11312</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2024-04-12T22:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor 2025 different results with same iLogic rule</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-2025-different-results-with-same-ilogic-rule/m-p/12710389#M11313</link>
      <description>&lt;P&gt;Thanks Mike!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This testing has mostly just been on this one machine, as far as 2025. But I've had others run this routine with 2023 and 2024, with the wireframe results working as expected.&lt;BR /&gt;&lt;BR /&gt;I was running version 2024.2 build 272, but just installed update 3 and I see the same results with 2024.3 build 343. Meaning that I get the wireframe thumbnail as expected with update 3.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'll rewrite this with View and see what I get, and post back.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Update: using view rather than camera for the display mode/ wire frame setting did indeed resolve this.&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Dim oFileName = "C:\Temp\Thumb Nail Pic.jpg"
Dim oView As Inventor.View = ThisApplication.ActiveView
Dim oCamera As Inventor.Camera
oCamera = oView.Camera

Dim oCurrentDisplayMode As DisplayModeEnum = oView.DisplayMode
Dim oCurrentViewOrientation As ViewOrientationTypeEnum = oCamera.ViewOrientationType

ThisApplication.ScreenUpdating = False
ThisApplication.DisplayOptions.Show3DIndicator = False
oView.DisplayMode = DisplayModeEnum.kWireframeNoHiddenEdges
oCamera.Perspective = False
oCamera.ViewOrientationType = Inventor.ViewOrientationTypeEnum.kIsoTopLeftViewOrientation
oCamera.Fit()
oCamera.ApplyWithoutTransition()

Try
	oCamera.SaveAsBitmap(oFileName, 600, 600, ThisApplication.TransientObjects.CreateColor(255, 255, 255))
Catch ex As Exception
	MsgBox(ex.Message)
Finally
	oCamera.ViewOrientationType = oCurrentViewOrientation
	oCamera.ApplyWithoutTransition()
	ThisApplication.ActiveView.DisplayMode = oCurrentDisplayMode	
	ThisApplication.DisplayOptions.Show3DIndicator = True
	ThisApplication.ScreenUpdating = True
	ThisApplication.ActiveView.Update()
End Try&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2024 14:00:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-2025-different-results-with-same-ilogic-rule/m-p/12710389#M11313</guid>
      <dc:creator>Curtis_W</dc:creator>
      <dc:date>2024-04-16T14:00:02Z</dc:date>
    </item>
  </channel>
</rss>

