<?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: Context for Publications Inventor Presentation Document in API in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/context-for-publications-inventor-presentation-document-in-api/m-p/10056906#M53490</link>
    <description>&lt;P&gt;Unfortunately InventorObjectModel.pdf have no information about Publications entities.&lt;/P&gt;</description>
    <pubDate>Thu, 04 Feb 2021 11:41:53 GMT</pubDate>
    <dc:creator>Anton_Chernomazov</dc:creator>
    <dc:date>2021-02-04T11:41:53Z</dc:date>
    <item>
      <title>Context for Publications Inventor Presentation Document in API</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/context-for-publications-inventor-presentation-document-in-api/m-p/10054203#M53488</link>
      <description>&lt;P&gt;I have some Inventor Presentation Document. I want to do some customising through Inventor API with C#. PresentationDocument object contains Publications indexator which requires some Context as Object type. Autodesk developer help does not contain info about it. What entity I can use as Context?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2021 15:04:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/context-for-publications-inventor-presentation-document-in-api/m-p/10054203#M53488</guid>
      <dc:creator>Anton_Chernomazov</dc:creator>
      <dc:date>2021-02-03T15:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: Context for Publications Inventor Presentation Document in API</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/context-for-publications-inventor-presentation-document-in-api/m-p/10054239#M53489</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7341576"&gt;@Anton_Chernomazov&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know nothing about Presentation Document thru the API.&lt;/P&gt;&lt;P&gt;Can this API Object Model (2020) help you somehow?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2021 15:18:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/context-for-publications-inventor-presentation-document-in-api/m-p/10054239#M53489</guid>
      <dc:creator>JoãoASilva</dc:creator>
      <dc:date>2021-02-03T15:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: Context for Publications Inventor Presentation Document in API</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/context-for-publications-inventor-presentation-document-in-api/m-p/10056906#M53490</link>
      <description>&lt;P&gt;Unfortunately InventorObjectModel.pdf have no information about Publications entities.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 11:41:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/context-for-publications-inventor-presentation-document-in-api/m-p/10056906#M53490</guid>
      <dc:creator>Anton_Chernomazov</dc:creator>
      <dc:date>2021-02-04T11:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: Context for Publications Inventor Presentation Document in API</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/context-for-publications-inventor-presentation-document-in-api/m-p/11310496#M53491</link>
      <description>&lt;P&gt;Has anyone found the context for the publication object?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 04:27:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/context-for-publications-inventor-presentation-document-in-api/m-p/11310496#M53491</guid>
      <dc:creator>mjkoushik</dc:creator>
      <dc:date>2022-07-21T04:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Context for Publications Inventor Presentation Document in API</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/context-for-publications-inventor-presentation-document-in-api/m-p/12314488#M53492</link>
      <description>&lt;P&gt;Here's how i got hold of the Publications-Object that Autodesk seems to be trying to hideaway:&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="Bert_Bimmel_0-1697637611915.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1280755i49629AE85331725A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bert_Bimmel_0-1697637611915.png" alt="Bert_Bimmel_0-1697637611915.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Unfortunately it requires some user interaction to select something useful in the GUI prior to capturing the Publications-Object via the Document's select set.&lt;BR /&gt;I'd appreciate very much, if there wasn't the urge to use such tinkering to get what you actually want!&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 14:04:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/context-for-publications-inventor-presentation-document-in-api/m-p/12314488#M53492</guid>
      <dc:creator>Bert_Bimmel</dc:creator>
      <dc:date>2023-10-18T14:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: Context for Publications Inventor Presentation Document in API</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/context-for-publications-inventor-presentation-document-in-api/m-p/12314608#M53493</link>
      <description>&lt;P&gt;Use the browsernode to bypass the context. You can adapt it to C# for your addin/program.&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-programming-ilogic/context-for-publication-inventor-presentation/m-p/11311302/highlight/true#M140478" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/inventor-programming-ilogic/context-for-publication-inventor-presentation/m-p/11311302/highlight/true#M140478&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 14:59:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/context-for-publications-inventor-presentation-document-in-api/m-p/12314608#M53493</guid>
      <dc:creator>g.georgiades</dc:creator>
      <dc:date>2023-10-18T14:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Context for Publications Inventor Presentation Document in API</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/context-for-publications-inventor-presentation-document-in-api/m-p/12316126#M53494</link>
      <description>&lt;P&gt;Yes, using the Browser-Workaround to access objects, that Autodesk tries to render inaccessible works fine: I had that Idea before too to access the publication tweaks. Didn't see, that the parent node's native object is the same thing as the parent of my select set's item.&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's because my original object of desire was the storyboard, and trying to find my path up through the object catalog lead me to the approach described above.&lt;/P&gt;&lt;P&gt;So here's my original intention that I'm still struggling with:&lt;/P&gt;&lt;P&gt;I want to turn things "back to normal", i.e. get rid of this obnoxious storyboard and snapshot's storyboard-associativity. So far, i figured out, that presentations, that have been created with older versions of inventor, and are opened in Inventor 2020+ are converted into Snaphots whose StoryboardAssociative flag is set to "false".&lt;/P&gt;&lt;P&gt;I haven't yet found a button in the GUI which breaks this associativity from newly created Presentations/Snapshots. But fortunately you can do it using the API:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bert_Bimmel_0-1697694278189.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1281057i1D9AF244A4C1B6F4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bert_Bimmel_0-1697694278189.png" alt="Bert_Bimmel_0-1697694278189.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So, after done so, you end up with some schizphrenic browser that shows different things, wether the Snapshot with broken associativity is activated for editing or not:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bert_Bimmel_1-1697695080030.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1281063iC012F3445C8D0440/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bert_Bimmel_1-1697695080030.png" alt="Bert_Bimmel_1-1697695080030.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So, after breaking the chain to that $%&amp;amp;§!-Storyboard, i'd like to get rid of it. Turn's out, I can't, but at least i'd like to flush it's content down the toilet to prevent me or other's to accidentially try to alter the wrong explosion paths.&lt;/P&gt;&lt;P&gt;Inside the GUI I can mark the Browsernodes and say "delete", and after that I am where I want to be: Orphaned, empty Storyboard, and free explosion paths in my now unbound Snapshot:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bert_Bimmel_2-1697695405614.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1281066i208FAC92FA0361B2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bert_Bimmel_2-1697695405614.png" alt="Bert_Bimmel_2-1697695405614.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;-&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bert_Bimmel_3-1697695453052.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1281067i98EE86BAD8C0D401/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bert_Bimmel_3-1697695453052.png" alt="Bert_Bimmel_3-1697695453052.png" /&gt;&lt;/span&gt;&amp;nbsp;&amp;amp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bert_Bimmel_4-1697695501563.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1281068iD2857E9F81B55698/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bert_Bimmel_4-1697695501563.png" alt="Bert_Bimmel_4-1697695501563.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;-&amp;gt; I'm happy! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;As this clicking-orgy is tedious and needs to be explained to everybody multiple times, i'd like to fully automate it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Turns out, when I grab my PresentationsTweaks via their browsernode to call their "delete" method, I end up with an empty browser, but a still populated Storyboard:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bert_Bimmel_5-1697695717891.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1281069i547B8E0F4B7AA736/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bert_Bimmel_5-1697695717891.png" alt="Bert_Bimmel_5-1697695717891.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, how do i get rid of the storyboard's content? That's why i ended up trying to get hold of the storyboard-object by going&lt;SPAN&gt;&amp;nbsp;through a horse's a55 to get to its mouth, to find somthing i can flush there, but apparently, the API is as messed up as the GUI. At least, there is nothing left, that i could flush:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bert_Bimmel_6-1697696158090.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1281072iFD255920C017C210/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bert_Bimmel_6-1697696158090.png" alt="Bert_Bimmel_6-1697696158090.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;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 06:17:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/context-for-publications-inventor-presentation-document-in-api/m-p/12316126#M53494</guid>
      <dc:creator>Bert_Bimmel</dc:creator>
      <dc:date>2023-10-19T06:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: Context for Publications Inventor Presentation Document in API</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/context-for-publications-inventor-presentation-document-in-api/m-p/12316712#M53495</link>
      <description>&lt;P&gt;I am seeing success by programmatically selecting all the tweaks in the active storyboard and using inventor command to delete them. (After you undo the associativity and no scene is active)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you physically hit delete key, it calls AppDeleteCmd, not some TweakDelete command so there must be something under the hood that is different.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Side note while testing this: i found that using Publication.Storyboards.Add creates a new storyboard, but it is invisible to the user &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;	Dim doc As PresentationDocument = ThisApplication.ActiveDocument
	Dim pubs As New List(Of Publication) 'Essentially PresentationDocument.Publications

	Dim topnode = doc.BrowserPanes.Item("Model").TopNode

	For Each node As BrowserNode In topnode.BrowserNodes 'These are all the scene nodes
		If node.NativeObject IsNot Nothing AndAlso TypeOf node.NativeObject Is Publication Then
			pubs.Add(node.NativeObject)
		End If
	Next

	Dim activePub = pubs.First(Function(p) p.DisplayName = doc.ActiveScene.Name) 'Essentially PresentationDocument.ActivePublication
	Dim activeStoryBoard = activePub.ActiveStoryboard

	ThisDoc.Document.SelectSet.Clear()
	For Each twk In activeStoryBoard.Tweaks
		ThisDoc.Document.SelectSet.Select(twk)
	Next

	ThisApplication.CommandManager.ControlDefinitions.Item("AppDeleteCmd").Execute2(True)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 11:45:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/context-for-publications-inventor-presentation-document-in-api/m-p/12316712#M53495</guid>
      <dc:creator>g.georgiades</dc:creator>
      <dc:date>2023-10-19T11:45:01Z</dc:date>
    </item>
  </channel>
</rss>

