<?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: Views added via API lose BOM information in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/views-added-via-api-lose-bom-information/m-p/13222928#M175026</link>
    <description>&lt;P&gt;Thanks for the hint.&lt;/P&gt;&lt;P&gt;Strangely, it worked with all other test assemblies without the optional parameter.&lt;/P&gt;&lt;P&gt;kFirstLevelComponents appears to be deprecated. It's not exposed through the API.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="c_hoppen_0-1734721599814.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1448242i7099D8875DF89A37/image-size/medium?v=v2&amp;amp;px=400" role="button" title="c_hoppen_0-1734721599814.png" alt="c_hoppen_0-1734721599814.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Have a great holiday!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Dec 2024 19:09:05 GMT</pubDate>
    <dc:creator>c_hoppen</dc:creator>
    <dc:date>2024-12-20T19:09:05Z</dc:date>
    <item>
      <title>Views added via API lose BOM information</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/views-added-via-api-lose-bom-information/m-p/13222067#M175003</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;As the title says, views lose their connection to the BOM when I create views with the API.&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;DrawingView iso1View = sheet.DrawingViews.AddBaseView(modelDoc as _Document,
    centerIso1, scale,
    ViewOrientationTypeEnum.kIsoTopRightViewOrientation,
    DrawingViewStyleEnum.kHiddenLineRemovedDrawingViewStyle,
    "", null, options);&lt;/LI-CODE&gt;&lt;P&gt;As a result, I cannot place a BOM. The line&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;PartsList partsList = sheet.PartsLists.Add(iso1View, tg.CreatePoint2d(0, 0));&lt;/LI-CODE&gt;&lt;P&gt;throws an exception.&lt;BR /&gt;Very strange: When I try to manually place a balloon after creating the views, Inventor asks me for the BOM. See video. I have never seen this dialog before.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6366270167112w852h480r610" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6366270167112" 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;a class="video-embed-link" href="https://forums.autodesk.com/t5/video/gallerypage/video-id/6366270167112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This only happens with a specific customer data set. It works with other example assemblies.&amp;nbsp;This does not occur when I create the views manually.&amp;nbsp;This is independent of the drawing template.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Inventor 2024.3.3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Christoph&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2024 09:27:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/views-added-via-api-lose-bom-information/m-p/13222067#M175003</guid>
      <dc:creator>c_hoppen</dc:creator>
      <dc:date>2024-12-20T09:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: Views added via API lose BOM information</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/views-added-via-api-lose-bom-information/m-p/13222258#M175005</link>
      <description>&lt;P&gt;Check BOM in Assembly&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JMGunnar_0-1734695789117.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1448115iC974DEF8BA97CA93/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JMGunnar_0-1734695789117.png" alt="JMGunnar_0-1734695789117.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards Johan&amp;nbsp;&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;oPlacementPoint&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;TransientGeometry&lt;/SPAN&gt;.&lt;SPAN&gt;CreatePoint2d&lt;/SPAN&gt;(&lt;SPAN&gt;postionX&lt;/SPAN&gt;, &lt;SPAN&gt;postionY&lt;/SPAN&gt;)	
		
		&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;partsListBomType&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;PartsListLevelEnum&lt;/SPAN&gt; = 46593
	
		&lt;SPAN&gt;'''&lt;/SPAN&gt;&lt;SPAN&gt;Name					Value	Description&lt;/SPAN&gt;
		&lt;SPAN&gt;'kFirstLevelComponents	46593	First level components.&lt;/SPAN&gt;
		&lt;SPAN&gt;'kPartsOnly				46594	Parts only.&lt;/SPAN&gt;
		&lt;SPAN&gt;'kStructured			46593	Structured first level components.&lt;/SPAN&gt;
		&lt;SPAN&gt;'kStructuredAllLevels	46595	Structured all components.&lt;/SPAN&gt;
	
		&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oPartsList&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;PartsList&lt;/SPAN&gt; = &lt;SPAN&gt;oSheet&lt;/SPAN&gt;.&lt;SPAN&gt;PartsLists&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;oDrawingView&lt;/SPAN&gt;, &lt;SPAN&gt;oPlacementPoint&lt;/SPAN&gt;,&lt;SPAN&gt;partsListBomType&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2024 11:56:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/views-added-via-api-lose-bom-information/m-p/13222258#M175005</guid>
      <dc:creator>JMGunnar</dc:creator>
      <dc:date>2024-12-20T11:56:37Z</dc:date>
    </item>
    <item>
      <title>Betreff: Views added via API lose BOM information</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/views-added-via-api-lose-bom-information/m-p/13222928#M175026</link>
      <description>&lt;P&gt;Thanks for the hint.&lt;/P&gt;&lt;P&gt;Strangely, it worked with all other test assemblies without the optional parameter.&lt;/P&gt;&lt;P&gt;kFirstLevelComponents appears to be deprecated. It's not exposed through the API.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="c_hoppen_0-1734721599814.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1448242i7099D8875DF89A37/image-size/medium?v=v2&amp;amp;px=400" role="button" title="c_hoppen_0-1734721599814.png" alt="c_hoppen_0-1734721599814.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Have a great holiday!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2024 19:09:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/views-added-via-api-lose-bom-information/m-p/13222928#M175026</guid>
      <dc:creator>c_hoppen</dc:creator>
      <dc:date>2024-12-20T19:09:05Z</dc:date>
    </item>
  </channel>
</rss>

