<?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 Betreff: Setting representation Level of Detail fails due to suppressed part in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/setting-representation-level-of-detail-fails-due-to-suppressed/m-p/10129700#M121695</link>
    <description>&lt;P&gt;I actually found an even better solution to check if the Active LOD current Browser Node exists, using this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-customization/how-to-copy-a-level-of-detail-to-a-design-view/td-p/4322572" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-customization/how-to-copy-a-level-of-detail-to-a-design-view/td-p/4322572&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #ce5c95;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;asDoc&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;AssemblyDocument&lt;/SPAN&gt; = &lt;SPAN style="color: #9d6bce;"&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #9d6bce;"&gt;Document&lt;/SPAN&gt;
&lt;SPAN style="color: #db9652;"&gt;aComp&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;asDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;ComponentDefinition&lt;/SPAN&gt;

&lt;SPAN style="color: #b2b2b5;"&gt;'Position der Detailgenauigkeit erfassen&lt;/SPAN&gt;
&lt;SPAN style="color: #ce5c95;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;ActLOD&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;String&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;aComp&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;RepresentationsManager&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;ActiveLevelOfDetailRepresentation&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Name&lt;/SPAN&gt;

&lt;SPAN style="color: #ce5c95;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;LODact&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;LevelOfDetailRepresentation&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;aComp&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;RepresentationsManager&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;ActiveLevelOfDetailRepresentation&lt;/SPAN&gt;
&lt;SPAN style="color: #db9652;"&gt;LODrep&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;aComp&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;RepresentationsManager&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;LevelOfDetailRepresentations&lt;/SPAN&gt;
&lt;SPAN style="color: #b2b2b5;"&gt;'Dim Str As String&lt;/SPAN&gt;

&lt;SPAN style="color: #ce5c95;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;oLODRep&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;LevelOfDetailRepresentation&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;asDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;RepresentationsManager&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;LevelOfDetailRepresentations&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #db9652;"&gt;ActLOD&lt;/SPAN&gt;)
	  
&lt;SPAN style="color: #b2b2b5;"&gt;'  asDoc.BrowserPanes.Item("Model").Activate&lt;/SPAN&gt;
  
  &lt;SPAN style="color: #ce5c95;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;oNativeBrowserNodeDef&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;NativeBrowserNodeDefinition&lt;/SPAN&gt; 
  
  &lt;SPAN style="color: #ce5c95;"&gt;Try&lt;/SPAN&gt; 
  &lt;SPAN style="color: #db9652;"&gt;oNativeBrowserNodeDef&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;asDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;BrowserPanes&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;GetNativeBrowserNodeDefinition&lt;/SPAN&gt;(&lt;SPAN style="color: #db9652;"&gt;oLODRep&lt;/SPAN&gt;)
  &lt;SPAN style="color: #db9652;"&gt;MsgBox&lt;/SPAN&gt;(&lt;SPAN style="color: #db9652;"&gt;ActLOD&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #35b173;"&gt;" | "&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #35b173;"&gt;"Aktiv vorhanden"&lt;/SPAN&gt;)
&lt;SPAN style="color: #ce5c95;"&gt;Catch&lt;/SPAN&gt; 
	&lt;SPAN style="color: #db9652;"&gt;MsgBox&lt;/SPAN&gt;(&lt;SPAN style="color: #db9652;"&gt;ActLOD&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #35b173;"&gt;" | "&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #35b173;"&gt;"Aktive nicht vorhanden"&lt;/SPAN&gt;)
&lt;SPAN style="color: #ce5c95;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;Try&lt;/SPAN&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 04 Mar 2021 12:42:40 GMT</pubDate>
    <dc:creator>Guido.LangeTuchscherer</dc:creator>
    <dc:date>2021-03-04T12:42:40Z</dc:date>
    <item>
      <title>Setting representation Level of Detail fails due to suppressed part</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/setting-representation-level-of-detail-fails-due-to-suppressed/m-p/10075293#M120933</link>
      <description>&lt;P&gt;Hello nice peaople,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I set the LOD before doing some other stuff, which works fine as long as there is no suppressed subpart in the assembly. It crashes or fails when there is a suppressed part in the assembly, but I can't figure out why.&lt;/P&gt;&lt;P&gt;Second time, when whyever LOD 1 is created it works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;					&lt;SPAN style="color: #ce5c95;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;asDoc&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;AssemblyDocument&lt;/SPAN&gt; = &lt;SPAN style="color: #9d6bce;"&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #9d6bce;"&gt;Document&lt;/SPAN&gt;
					&lt;SPAN style="color: #db9652;"&gt;aComp&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;asDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;ComponentDefinition&lt;/SPAN&gt;
					
					&lt;SPAN style="color: #b2b2b5;"&gt;'Position der Detailgenauigkeit erfassen&lt;/SPAN&gt;
					&lt;SPAN style="color: #ce5c95;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;ActLOD&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;String&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;aComp&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;RepresentationsManager&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;ActiveLevelOfDetailRepresentation&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Name&lt;/SPAN&gt;
					
					&lt;SPAN style="color: #ce5c95;"&gt;Try&lt;/SPAN&gt;
						&lt;SPAN style="color: #db9652;"&gt;aComp&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;RepresentationsManager&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;LevelOfDetailRepresentations&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #35b173;"&gt;"My LOD"&lt;/SPAN&gt;).&lt;SPAN style="color: #db9652;"&gt;Activate&lt;/SPAN&gt;(&lt;SPAN style="color: #ce5c95;"&gt;True&lt;/SPAN&gt;)
					&lt;SPAN style="color: #ce5c95;"&gt;Catch&lt;/SPAN&gt;
						&lt;SPAN style="color: #db9652;"&gt;aComp&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;RepresentationsManager&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;LevelOfDetailRepresentations&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Add&lt;/SPAN&gt;(&lt;SPAN style="color: #35b173;"&gt;"My LOD"&lt;/SPAN&gt;)
						&lt;SPAN style="color: #db9652;"&gt;aComp&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;RepresentationsManager&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;LevelOfDetailRepresentations&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #35b173;"&gt;"My LOD"&lt;/SPAN&gt;).&lt;SPAN style="color: #db9652;"&gt;Activate&lt;/SPAN&gt;(&lt;SPAN style="color: #ce5c95;"&gt;True&lt;/SPAN&gt;)
					&lt;SPAN style="color: #ce5c95;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;Try&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Falscher Parameter. (Ausnahme von HRESULT: 0x80070057 (E_INVALIDARG))&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 10:59:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/setting-representation-level-of-detail-fails-due-to-suppressed/m-p/10075293#M120933</guid>
      <dc:creator>Guido.LangeTuchscherer</dc:creator>
      <dc:date>2021-02-11T10:59:46Z</dc:date>
    </item>
    <item>
      <title>Betreff: Setting representation Level of Detail fails due to suppressed part</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/setting-representation-level-of-detail-fails-due-to-suppressed/m-p/10075683#M120939</link>
      <description>&lt;P&gt;Ok got it nearly.&lt;/P&gt;&lt;P&gt;If I check is the current LOD is active (which is not the case, if there have been changes to unsaved doc), then i can set the default LOD before doing what i need, and thereby not getting an error.&lt;/P&gt;&lt;P&gt;But I would prefer to let the user save the current LOD if it has not been created yet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;					&lt;SPAN style="color: #ce5c95;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;asDoc&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;AssemblyDocument&lt;/SPAN&gt; = &lt;SPAN style="color: #9d6bce;"&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #9d6bce;"&gt;Document&lt;/SPAN&gt;
					&lt;SPAN style="color: #db9652;"&gt;aComp&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;asDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;ComponentDefinition&lt;/SPAN&gt;
					
					&lt;SPAN style="color: #b2b2b5;"&gt;'Position der Detailgenauigkeit erfassen&lt;/SPAN&gt;
					&lt;SPAN style="color: #ce5c95;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;ActLOD&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;String&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;aComp&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;RepresentationsManager&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;ActiveLevelOfDetailRepresentation&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Name&lt;/SPAN&gt;
					
					&lt;SPAN style="color: #ce5c95;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;Not&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;aComp&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;RepresentationsManager&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;LevelOfDetailRepresentations&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #db9652;"&gt;ActLOD&lt;/SPAN&gt;).&lt;SPAN style="color: #db9652;"&gt;Activate&lt;/SPAN&gt;(&lt;SPAN style="color: #ce5c95;"&gt;True&lt;/SPAN&gt;) &lt;SPAN style="color: #ce5c95;"&gt;Then&lt;/SPAN&gt;
&lt;SPAN style="color: #b2b2b5;"&gt;'							MsgBox("Konnte gesetzt werden")&lt;/SPAN&gt;
							&lt;SPAN style="color: #b2b2b5;"&gt;'Detailgenauigkeit speichern?&lt;/SPAN&gt;
							&lt;SPAN style="color: #db9652;"&gt;ActLOD&lt;/SPAN&gt; = &lt;SPAN style="color: #35b173;"&gt;"Hauptansicht"&lt;/SPAN&gt;
							&lt;SPAN style="color: #db9652;"&gt;aComp&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;RepresentationsManager&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;LevelOfDetailRepresentations&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #db9652;"&gt;ActLOD&lt;/SPAN&gt;).&lt;SPAN style="color: #db9652;"&gt;Activate&lt;/SPAN&gt;(&lt;SPAN style="color: #ce5c95;"&gt;True&lt;/SPAN&gt;)
					&lt;SPAN style="color: #ce5c95;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;If&lt;/SPAN&gt;
					
					&lt;SPAN style="color: #ce5c95;"&gt;Try&lt;/SPAN&gt;
						&lt;SPAN style="color: #db9652;"&gt;aComp&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;RepresentationsManager&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;LevelOfDetailRepresentations&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #35b173;"&gt;"My LOD"&lt;/SPAN&gt;).&lt;SPAN style="color: #db9652;"&gt;Activate&lt;/SPAN&gt;(&lt;SPAN style="color: #ce5c95;"&gt;True&lt;/SPAN&gt;)
					&lt;SPAN style="color: #ce5c95;"&gt;Catch&lt;/SPAN&gt;
						&lt;SPAN style="color: #db9652;"&gt;aComp&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;RepresentationsManager&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;LevelOfDetailRepresentations&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Add&lt;/SPAN&gt;(&lt;SPAN style="color: #35b173;"&gt;"My LOD"&lt;/SPAN&gt;)
						&lt;SPAN style="color: #db9652;"&gt;aComp&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;RepresentationsManager&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;LevelOfDetailRepresentations&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #35b173;"&gt;"My LOD"&lt;/SPAN&gt;).&lt;SPAN style="color: #db9652;"&gt;Activate&lt;/SPAN&gt;(&lt;SPAN style="color: #ce5c95;"&gt;True&lt;/SPAN&gt;)
					&lt;SPAN style="color: #ce5c95;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;Try&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 13:34:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/setting-representation-level-of-detail-fails-due-to-suppressed/m-p/10075683#M120939</guid>
      <dc:creator>Guido.LangeTuchscherer</dc:creator>
      <dc:date>2021-02-11T13:34:08Z</dc:date>
    </item>
    <item>
      <title>Betreff: Setting representation Level of Detail fails due to suppressed part</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/setting-representation-level-of-detail-fails-due-to-suppressed/m-p/10123786#M121562</link>
      <description>&lt;P&gt;Hi there, and in different words, as far as I got, do some of you maybe know how to decifer if a level of detail actually exists?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just after suppressing a part in an assembly, I can get the active LOD and then my way was to use Try (Catch) to activate the LOD (if existing), which unfortunately always succeeds, it just writes a new actual one. When the active LOD actually exists there is no problem, but when there only is a temporary one it will generate new LOD everytime I save.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #ce5c95;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;asDoc&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;AssemblyDocument&lt;/SPAN&gt; = &lt;SPAN style="color: #9d6bce;"&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #9d6bce;"&gt;Document&lt;/SPAN&gt;
&lt;SPAN style="color: #db9652;"&gt;aComp&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;asDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;ComponentDefinition&lt;/SPAN&gt;

&lt;SPAN style="color: #b2b2b5;"&gt;'Position der Detailgenauigkeit erfassen&lt;/SPAN&gt;
&lt;SPAN style="color: #ce5c95;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;ActLOD&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;String&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;aComp&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;RepresentationsManager&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;ActiveLevelOfDetailRepresentation&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Name&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ce5c95;"&gt;Try&lt;/SPAN&gt; 
	&lt;SPAN style="color: #db9652;"&gt;aComp&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;RepresentationsManager&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;LevelOfDetailRepresentations&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #db9652;"&gt;ActLOD&lt;/SPAN&gt;).&lt;SPAN style="color: #db9652;"&gt;Activate&lt;/SPAN&gt;(&lt;SPAN style="color: #ce5c95;"&gt;True&lt;/SPAN&gt;)
	'&lt;SPAN style="color: #db9652;"&gt;MsgBox&lt;/SPAN&gt;(&lt;SPAN style="color: #db9652;"&gt;ActLOD&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #35b173;"&gt;" gesetzt"&lt;/SPAN&gt;)
&lt;SPAN style="color: #ce5c95;"&gt;Catch&lt;/SPAN&gt;
	&lt;SPAN style="color: #db9652;"&gt;AcLOD&lt;/SPAN&gt; = &lt;SPAN style="color: #35b173;"&gt;"TempDetailgenauigkeit"&lt;/SPAN&gt;
	'&lt;SPAN style="color: #db9652;"&gt;MsgBox&lt;/SPAN&gt;(&lt;SPAN style="color: #db9652;"&gt;AcLOD&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #35b173;"&gt;" erstellt"&lt;/SPAN&gt;)
&lt;SPAN style="color: #b2b2b5;"&gt;'Finally&lt;/SPAN&gt;
	&lt;SPAN style="color: #db9652;"&gt;aComp&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;RepresentationsManager&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;LevelOfDetailRepresentations&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Add&lt;/SPAN&gt;(&lt;SPAN style="color: #db9652;"&gt;AcLOD&lt;/SPAN&gt;)
	'&lt;SPAN style="color: #db9652;"&gt;MsgBox&lt;/SPAN&gt;(&lt;SPAN style="color: #db9652;"&gt;AcLOD&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #35b173;"&gt;" aktiviert"&lt;/SPAN&gt;)
&lt;SPAN style="color: #ce5c95;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;Try&lt;/SPAN&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Mar 2021 14:21:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/setting-representation-level-of-detail-fails-due-to-suppressed/m-p/10123786#M121562</guid>
      <dc:creator>Guido.LangeTuchscherer</dc:creator>
      <dc:date>2021-03-02T14:21:34Z</dc:date>
    </item>
    <item>
      <title>Betreff: Setting representation Level of Detail fails due to suppressed part</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/setting-representation-level-of-detail-fails-due-to-suppressed/m-p/10126783#M121618</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/9531986"&gt;@Guido.LangeTuchscherer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are thinking about finding a specific LOD that is there in the assembly or not, you may be able to use For loop and iterate the collection of LODs and check if the one you are looking for exists or not and if it exists, Inventor will be able to activate it, and if it does not it can create it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you looking for something like that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 14:23:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/setting-representation-level-of-detail-fails-due-to-suppressed/m-p/10126783#M121618</guid>
      <dc:creator>dutt.thakar</dc:creator>
      <dc:date>2021-03-03T14:23:39Z</dc:date>
    </item>
    <item>
      <title>Betreff: Setting representation Level of Detail fails due to suppressed part</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/setting-representation-level-of-detail-fails-due-to-suppressed/m-p/10128833#M121674</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6518271"&gt;@dutt.thakar&lt;/a&gt;, thanks for the input,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;unfortunately exactly this does not work.&lt;/P&gt;&lt;P&gt;You can try the following :&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Have an assembly with 2 parts&lt;/LI&gt;&lt;LI&gt;Save it&lt;/LI&gt;&lt;LI&gt;Suppress one of the parts, this will generate a new active LOD&lt;/LI&gt;&lt;LI&gt;run the code (dont save), the active LOD will be shown in the list of the existing LOD's although it doesn't&lt;/LI&gt;&lt;LI&gt;There seems to be no place/option where to look for the actual existing LOD's&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I wrote a kind of a workaround now, where i simply assume that if the active LOD is the last one in the list it doesn't exist. Which is well ok as long as not the Last one is active.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #ce5c95;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;oDoc&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;AssemblyDocument&lt;/SPAN&gt; = &lt;SPAN style="color: #9d6bce;"&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #9d6bce;"&gt;Document&lt;/SPAN&gt;  
&lt;SPAN style="color: #ce5c95;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;oDef&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;ComponentDefinition&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;ComponentDefinition&lt;/SPAN&gt; 

&lt;SPAN style="color: #ce5c95;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;ActLOD&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;String&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;oDef&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;RepresentationsManager&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;ActiveLevelOfDetailRepresentation&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;name&lt;/SPAN&gt;

&lt;SPAN style="color: #ce5c95;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;oList&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;New&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;ArrayList&lt;/SPAN&gt;

&lt;SPAN style="color: #ce5c95;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;i&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;Integer&lt;/SPAN&gt; = 1 &lt;SPAN style="color: #ce5c95;"&gt;To&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;oDef&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;RepresentationsManager&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;LevelOfDetailRepresentations&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;count&lt;/SPAN&gt;
	&lt;SPAN style="color: #db9652;"&gt;oList&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Add&lt;/SPAN&gt;( &lt;SPAN style="color: #db9652;"&gt;oDef&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;RepresentationsManager&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;LevelOfDetailRepresentations&lt;/SPAN&gt;(&lt;SPAN style="color: #db9652;"&gt;i&lt;/SPAN&gt;).&lt;SPAN style="color: #db9652;"&gt;name&lt;/SPAN&gt;)
&lt;SPAN style="color: #ce5c95;"&gt;Next&lt;/SPAN&gt;
&lt;SPAN style="color: #b2b2b5;"&gt;'oList.Add(oDef.RepresentationsManager.ActiveLevelOfDetailRepresentation.Name)&lt;/SPAN&gt;

&lt;SPAN style="color: #db9652;"&gt;oValue&lt;/SPAN&gt; = &lt;SPAN style="color: #9d6bce;"&gt;InputListBox&lt;/SPAN&gt;(&lt;SPAN style="color: #35b173;"&gt;"Select LOD"&lt;/SPAN&gt;, &lt;SPAN style="color: #db9652;"&gt;oList&lt;/SPAN&gt;, &lt;SPAN style="color: #db9652;"&gt;ActLOD&lt;/SPAN&gt;, &lt;SPAN style="color: #35b173;"&gt;"Ilogic - LOD"&lt;/SPAN&gt;, &lt;SPAN style="color: #35b173;"&gt;"Available Selections"&lt;/SPAN&gt;)

&lt;SPAN style="color: #db9652;"&gt;oDef&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;RepresentationsManager&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;LevelOfDetailRepresentations&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #db9652;"&gt;oValue&lt;/SPAN&gt;).&lt;SPAN style="color: #db9652;"&gt;Activate&lt;/SPAN&gt;(&lt;SPAN style="color: #ce5c95;"&gt;True&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 06:38:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/setting-representation-level-of-detail-fails-due-to-suppressed/m-p/10128833#M121674</guid>
      <dc:creator>Guido.LangeTuchscherer</dc:creator>
      <dc:date>2021-03-04T06:38:12Z</dc:date>
    </item>
    <item>
      <title>Betreff: Setting representation Level of Detail fails due to suppressed part</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/setting-representation-level-of-detail-fails-due-to-suppressed/m-p/10128915#M121678</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/9531986"&gt;@Guido.LangeTuchscherer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ok, I am still trying to understand your point and what you are trying to achieve, Inventor generates an LOD, when we suppress the part, but it is not added in LOD list until the assembly is saved, and we can not get that from LOD collection, I agree there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have found a workaround where you can see if there is any unsaved LOD exist, It is not reliable but may be able to serve your purpose, Whenever any part is suppressed in Inventor it by default creates a LOD, and the name is always containing "LevelofDetail", and the same is reflected at the top in assembly name. What I did in below code as a starter is to see if the assembly display name contains the word "LevelofDetail" if it does that means there is an unsaved LOD. See the below code, it will also show the name of the unsaved LOD in the messagebox.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;asDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyDocument&lt;/SPAN&gt; = &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;aComp&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyComponentDefinition&lt;/SPAN&gt; = &lt;SPAN&gt;asDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;LOD&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;LevelOfDetailRepresentation&lt;/SPAN&gt; = &lt;SPAN&gt;asDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN&gt;RepresentationsManager&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveLevelOfDetailRepresentation&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;Str&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt;

&lt;SPAN&gt;'MessageBox.Show(asDoc.DisplayName)&lt;/SPAN&gt;

&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;asDoc&lt;/SPAN&gt;.&lt;SPAN&gt;DisplayName&lt;/SPAN&gt;.&lt;SPAN&gt;Contains&lt;/SPAN&gt;(&lt;SPAN&gt;"LevelofDetail"&lt;/SPAN&gt;)
	&lt;SPAN&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt;(&lt;SPAN&gt;"There is an active unsaved LOD"&lt;/SPAN&gt;,&lt;SPAN&gt;LOD&lt;/SPAN&gt;.&lt;SPAN&gt;Name&lt;/SPAN&gt;)
	
	
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;

&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this will be a small help in your goal. Kindly reply here and we can try to solve your problem in more detail.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 07:29:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/setting-representation-level-of-detail-fails-due-to-suppressed/m-p/10128915#M121678</guid>
      <dc:creator>dutt.thakar</dc:creator>
      <dc:date>2021-03-04T07:29:36Z</dc:date>
    </item>
    <item>
      <title>Betreff: Setting representation Level of Detail fails due to suppressed part</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/setting-representation-level-of-detail-fails-due-to-suppressed/m-p/10128967#M121679</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6518271"&gt;@dutt.thakar&lt;/a&gt; thanks alot,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;did not think of that, seems to work well and much better than my way and saves me some lines of code as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 07:51:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/setting-representation-level-of-detail-fails-due-to-suppressed/m-p/10128967#M121679</guid>
      <dc:creator>Guido.LangeTuchscherer</dc:creator>
      <dc:date>2021-03-04T07:51:01Z</dc:date>
    </item>
    <item>
      <title>Betreff: Setting representation Level of Detail fails due to suppressed part</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/setting-representation-level-of-detail-fails-due-to-suppressed/m-p/10129095#M121682</link>
      <description>&lt;P&gt;Just for explaining reasons,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to get the current LOD, checking if it is existing or not.&lt;/P&gt;&lt;P&gt;In case it exist continue my code, if it doesn't exist save it into a temporary LOD to active after my code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code adds a new LOD in which all referenced parts are suppressed, cycling though all the subparts and subassemblies in an assembly and after that reading the rangebox measures to ensure as close as possible measures of the current active assembly.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 09:00:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/setting-representation-level-of-detail-fails-due-to-suppressed/m-p/10129095#M121682</guid>
      <dc:creator>Guido.LangeTuchscherer</dc:creator>
      <dc:date>2021-03-04T09:00:26Z</dc:date>
    </item>
    <item>
      <title>Betreff: Setting representation Level of Detail fails due to suppressed part</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/setting-representation-level-of-detail-fails-due-to-suppressed/m-p/10129700#M121695</link>
      <description>&lt;P&gt;I actually found an even better solution to check if the Active LOD current Browser Node exists, using this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-customization/how-to-copy-a-level-of-detail-to-a-design-view/td-p/4322572" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-customization/how-to-copy-a-level-of-detail-to-a-design-view/td-p/4322572&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #ce5c95;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;asDoc&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;AssemblyDocument&lt;/SPAN&gt; = &lt;SPAN style="color: #9d6bce;"&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #9d6bce;"&gt;Document&lt;/SPAN&gt;
&lt;SPAN style="color: #db9652;"&gt;aComp&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;asDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;ComponentDefinition&lt;/SPAN&gt;

&lt;SPAN style="color: #b2b2b5;"&gt;'Position der Detailgenauigkeit erfassen&lt;/SPAN&gt;
&lt;SPAN style="color: #ce5c95;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;ActLOD&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;String&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;aComp&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;RepresentationsManager&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;ActiveLevelOfDetailRepresentation&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Name&lt;/SPAN&gt;

&lt;SPAN style="color: #ce5c95;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;LODact&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;LevelOfDetailRepresentation&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;aComp&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;RepresentationsManager&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;ActiveLevelOfDetailRepresentation&lt;/SPAN&gt;
&lt;SPAN style="color: #db9652;"&gt;LODrep&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;aComp&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;RepresentationsManager&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;LevelOfDetailRepresentations&lt;/SPAN&gt;
&lt;SPAN style="color: #b2b2b5;"&gt;'Dim Str As String&lt;/SPAN&gt;

&lt;SPAN style="color: #ce5c95;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;oLODRep&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;LevelOfDetailRepresentation&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;asDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;RepresentationsManager&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;LevelOfDetailRepresentations&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #db9652;"&gt;ActLOD&lt;/SPAN&gt;)
	  
&lt;SPAN style="color: #b2b2b5;"&gt;'  asDoc.BrowserPanes.Item("Model").Activate&lt;/SPAN&gt;
  
  &lt;SPAN style="color: #ce5c95;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;oNativeBrowserNodeDef&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;NativeBrowserNodeDefinition&lt;/SPAN&gt; 
  
  &lt;SPAN style="color: #ce5c95;"&gt;Try&lt;/SPAN&gt; 
  &lt;SPAN style="color: #db9652;"&gt;oNativeBrowserNodeDef&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;asDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;BrowserPanes&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;GetNativeBrowserNodeDefinition&lt;/SPAN&gt;(&lt;SPAN style="color: #db9652;"&gt;oLODRep&lt;/SPAN&gt;)
  &lt;SPAN style="color: #db9652;"&gt;MsgBox&lt;/SPAN&gt;(&lt;SPAN style="color: #db9652;"&gt;ActLOD&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #35b173;"&gt;" | "&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #35b173;"&gt;"Aktiv vorhanden"&lt;/SPAN&gt;)
&lt;SPAN style="color: #ce5c95;"&gt;Catch&lt;/SPAN&gt; 
	&lt;SPAN style="color: #db9652;"&gt;MsgBox&lt;/SPAN&gt;(&lt;SPAN style="color: #db9652;"&gt;ActLOD&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #35b173;"&gt;" | "&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #35b173;"&gt;"Aktive nicht vorhanden"&lt;/SPAN&gt;)
&lt;SPAN style="color: #ce5c95;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;Try&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Mar 2021 12:42:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/setting-representation-level-of-detail-fails-due-to-suppressed/m-p/10129700#M121695</guid>
      <dc:creator>Guido.LangeTuchscherer</dc:creator>
      <dc:date>2021-03-04T12:42:40Z</dc:date>
    </item>
    <item>
      <title>Betreff: Setting representation Level of Detail fails due to suppressed part</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/setting-representation-level-of-detail-fails-due-to-suppressed/m-p/10132918#M121769</link>
      <description>&lt;P&gt;Cleaned up the code and found out how to read the node of LOD whereby you can identify if it exists or not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #ce5c95;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;asDoc&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;AssemblyDocument&lt;/SPAN&gt; = &lt;SPAN style="color: #9d6bce;"&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #9d6bce;"&gt;Document&lt;/SPAN&gt;
&lt;SPAN style="color: #db9652;"&gt;aComp&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;asDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;ComponentDefinition&lt;/SPAN&gt;

&lt;SPAN style="color: #b2b2b5;"&gt;'Position der Detailgenauigkeit erfassen&lt;/SPAN&gt;
&lt;SPAN style="color: #ce5c95;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;ActLOD&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;String&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;aComp&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;RepresentationsManager&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;ActiveLevelOfDetailRepresentation&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Name&lt;/SPAN&gt;

&lt;SPAN style="color: #b2b2b5;"&gt;'Definieren der Detailgenauigkeit&lt;/SPAN&gt;
&lt;SPAN style="color: #ce5c95;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;oLODRep&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;LevelOfDetailRepresentation&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;asDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;RepresentationsManager&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;LevelOfDetailRepresentations&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #db9652;"&gt;ActLOD&lt;/SPAN&gt;)
	  
&lt;SPAN style="color: #b2b2b5;"&gt;'Browser knoten definieren&lt;/SPAN&gt;
&lt;SPAN style="color: #ce5c95;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;oNativeBrowserNodeDef&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;NativeBrowserNodeDefinition&lt;/SPAN&gt; 

&lt;SPAN style="color: #b2b2b5;"&gt;'Versuchen die Aktive Detailgenauigkeit im Browserknoten zu definieren&lt;/SPAN&gt;
&lt;SPAN style="color: #ce5c95;"&gt;Try&lt;/SPAN&gt; 
	&lt;SPAN style="color: #db9652;"&gt;oNativeBrowserNodeDef&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;asDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;BrowserPanes&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;GetNativeBrowserNodeDefinition&lt;/SPAN&gt;(&lt;SPAN style="color: #db9652;"&gt;oLODRep&lt;/SPAN&gt;)
&lt;SPAN style="color: #b2b2b5;"&gt;'	MsgBox(ActLOD &amp;amp; " | " &amp;amp; "Aktiv vorhanden")&lt;/SPAN&gt;
&lt;SPAN style="color: #ce5c95;"&gt;Catch&lt;/SPAN&gt; 
&lt;SPAN style="color: #b2b2b5;"&gt;'	MsgBox(ActLOD &amp;amp; " | " &amp;amp; "Aktive nicht vorhanden")&lt;/SPAN&gt;
	&lt;SPAN style="color: #db9652;"&gt;ActLOD&lt;/SPAN&gt; = &lt;SPAN style="color: #35b173;"&gt;"Hauptansicht"&lt;/SPAN&gt;
&lt;SPAN style="color: #ce5c95;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;Try&lt;/SPAN&gt;
  
			&lt;SPAN style="color: #b2b2b5;"&gt;'Temporäre und für Abmessungen notwendige Detailgenauigkeit erstellen&lt;/SPAN&gt;
			&lt;SPAN style="color: #ce5c95;"&gt;Try&lt;/SPAN&gt; &lt;SPAN style="color: #b2b2b5;"&gt;'Für Abmessungen ohne Referenzbauteile&lt;/SPAN&gt;
				&lt;SPAN style="color: #db9652;"&gt;aComp&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;RepresentationsManager&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;LevelOfDetailRepresentations&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #35b173;"&gt;"Ohne Referenzbauteile"&lt;/SPAN&gt;).&lt;SPAN style="color: #db9652;"&gt;Activate&lt;/SPAN&gt;(&lt;SPAN style="color: #ce5c95;"&gt;True&lt;/SPAN&gt;)
			&lt;SPAN style="color: #ce5c95;"&gt;Catch&lt;/SPAN&gt; 
				&lt;SPAN style="color: #db9652;"&gt;aComp&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;RepresentationsManager&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;LevelOfDetailRepresentations&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Add&lt;/SPAN&gt;(&lt;SPAN style="color: #35b173;"&gt;"Ohne Referenzbauteile"&lt;/SPAN&gt;)
				&lt;SPAN style="color: #db9652;"&gt;aComp&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;RepresentationsManager&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;LevelOfDetailRepresentations&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #35b173;"&gt;"Ohne Referenzbauteile"&lt;/SPAN&gt;).&lt;SPAN style="color: #db9652;"&gt;Activate&lt;/SPAN&gt;(&lt;SPAN style="color: #ce5c95;"&gt;True&lt;/SPAN&gt;)
			&lt;SPAN style="color: #ce5c95;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;Try&lt;/SPAN&gt;

			&lt;SPAN style="color: #b2b2b5;"&gt;'Alle referenzbauteile unterdrücken&lt;/SPAN&gt;
			&lt;SPAN style="color: #ce5c95;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;aOcc&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;ComponentOccurrence&lt;/SPAN&gt;

			&lt;SPAN style="color: #b2b2b5;"&gt;' Für jede Occurrence (subobjekt in BG) prüfen ob Referenzteil und wenn ja unterdrücken&lt;/SPAN&gt;
			&lt;SPAN style="color: #ce5c95;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;Each&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;aOcc&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;aComp&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Occurrences&lt;/SPAN&gt;
				&lt;SPAN style="color: #ce5c95;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;aOcc&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;BOMStructure&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;kReferenceBOMStructure&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;Then&lt;/SPAN&gt;
						&lt;SPAN style="color: #b2b2b5;"&gt;'dann unterdrücken&lt;/SPAN&gt;
						&lt;SPAN style="color: #db9652;"&gt;aOcc&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Suppress&lt;/SPAN&gt;
				&lt;SPAN style="color: #ce5c95;"&gt;Else&lt;/SPAN&gt;
					&lt;SPAN style="color: #db9652;"&gt;aOcc&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Unsuppress&lt;/SPAN&gt;
				&lt;SPAN style="color: #ce5c95;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;If&lt;/SPAN&gt;
			&lt;SPAN style="color: #ce5c95;"&gt;Next&lt;/SPAN&gt;
  
  		&lt;SPAN style="color: #db9652;"&gt;XMax&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;Round&lt;/SPAN&gt;(&lt;SPAN style="color: #9d6bce;"&gt;Measure&lt;/SPAN&gt;.&lt;SPAN style="color: #9d6bce;"&gt;ExtentsLength&lt;/SPAN&gt;, 0)
		&lt;SPAN style="color: #db9652;"&gt;YMax&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;Round&lt;/SPAN&gt;(&lt;SPAN style="color: #9d6bce;"&gt;Measure&lt;/SPAN&gt;.&lt;SPAN style="color: #9d6bce;"&gt;ExtentsWidth&lt;/SPAN&gt;, 0)
		&lt;SPAN style="color: #db9652;"&gt;ZMax&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;Round&lt;/SPAN&gt;(&lt;SPAN style="color: #9d6bce;"&gt;Measure&lt;/SPAN&gt;.&lt;SPAN style="color: #9d6bce;"&gt;ExtentsHeight&lt;/SPAN&gt;, 0)

		&lt;SPAN style="color: #b2b2b5;"&gt;'write measures into iProperty, L=x, B=y, H=z&lt;/SPAN&gt;
		&lt;SPAN style="color: #9d6bce;"&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN style="color: #9d6bce;"&gt;Value&lt;/SPAN&gt;(&lt;SPAN style="color: #35b173;"&gt;"Custom"&lt;/SPAN&gt;, &lt;SPAN style="color: #35b173;"&gt;"Abmessung-Test"&lt;/SPAN&gt;) = &lt;SPAN style="color: #db9652;"&gt;XMax&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #35b173;"&gt;" x "&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #db9652;"&gt;YMax&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #35b173;"&gt;" x "&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #db9652;"&gt;ZMax&lt;/SPAN&gt; &lt;SPAN style="color: #b2b2b5;"&gt;'&amp;amp; " mm"&lt;/SPAN&gt;
  
  &lt;SPAN style="color: #b2b2b5;"&gt;'Anschließend wieder Detailgenauigkeit von vorher oder Temp aktivieren&lt;/SPAN&gt;
&lt;SPAN style="color: #db9652;"&gt;aComp&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;RepresentationsManager&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;LevelOfDetailRepresentations&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #db9652;"&gt;ActLOD&lt;/SPAN&gt;).&lt;SPAN style="color: #db9652;"&gt;Activate&lt;/SPAN&gt;(&lt;SPAN style="color: #ce5c95;"&gt;True&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Somehow this fails though in my main routine, something with the try catch which makes trouble.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 12:16:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/setting-representation-level-of-detail-fails-due-to-suppressed/m-p/10132918#M121769</guid>
      <dc:creator>Guido.LangeTuchscherer</dc:creator>
      <dc:date>2021-03-05T12:16:41Z</dc:date>
    </item>
  </channel>
</rss>

