<?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: How to run code throuh API before Vault Check-In? in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-run-code-throuh-api-before-vault-check-in/m-p/8676330#M95897</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/473476"&gt;@bradeneuropeArthur&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So its a bit frustrating but...&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We found out that Vault BASIC does not perform any Document.Service functions. We have tested the application using PROFESSIONAL version where it works well. There is no info about it in documentation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have no idea how it will perform on Workgroup... I hope same as Professional.&lt;/P&gt;</description>
    <pubDate>Fri, 22 Mar 2019 06:58:35 GMT</pubDate>
    <dc:creator>Ezekiel12</dc:creator>
    <dc:date>2019-03-22T06:58:35Z</dc:date>
    <item>
      <title>How to run code throuh API before Vault Check-In?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-run-code-throuh-api-before-vault-check-in/m-p/8608591#M94674</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;how to run code through API when the User will click check-in to the Vault?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;User will click the Check-In button, I need to run some "control" code and after that send it to Vault. If the "control" code fails, I need to stop the Check-in process. (Because user will be notifies to fill in more info to model).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any idea how to get to check-in through api?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thx,&lt;/P&gt;
&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 14:39:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-run-code-throuh-api-before-vault-check-in/m-p/8608591#M94674</guid>
      <dc:creator>Ezekiel12</dc:creator>
      <dc:date>2019-02-20T14:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to run code throuh API before Vault Check-In?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-run-code-throuh-api-before-vault-check-in/m-p/8608634#M94677</link>
      <description>&lt;P&gt;you need to use the pre and post events of the EDM vault add in of inventor.&lt;/P&gt;
&lt;P&gt;Read this in the meanwhile:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-customization/use-inventor-vault-add-in-through-inventor-api/m-p/6041107#M61736" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/inventor-customization/use-inventor-vault-add-in-through-inventor-api/m-p/6041107#M61736&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Autodesk Software:&lt;/STRONG&gt; Inventor Professional 2018 | Vault Professional 2018 | Autocad Mechanical 2018&lt;BR /&gt;&lt;STRONG&gt;Programming Skills:&lt;/STRONG&gt; Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic&lt;BR /&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-ideas/dimension-component-part-and-assembly/idi-p/7523011" target="_blank"&gt;Dimension Component!&lt;/A&gt; | &lt;A href="https://forums.autodesk.com/t5/inventor-ideas/export-partlist-default-configuration/idc-p/7422221#M21416" target="_blank"&gt;Partlist Export!&lt;/A&gt; | &lt;A href="https://forums.autodesk.com/t5/inventor-ideas/derived-part-and-assembly-copy-i-properties/idi-p/6349392" target="_blank"&gt;Derive I-properties!&lt;/A&gt; | &lt;A href="https://forums.autodesk.com/t5/inventor-ideas/inventor-vault-prompts-settings-amp-vault-prompts-settings-via/idi-p/7641767" target="_blank"&gt;Vault Prompts Via API!&lt;/A&gt; | &lt;A href="https://forums.autodesk.com/t5/vault-ideas/vault-professional-handbook-or-manual-to-be-provided/idi-p/7653669" target="_blank"&gt;Vault Handbook/Manual!&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-ideas/drawing-toggle-sheets/idi-p/7708757" target="_blank"&gt;Drawing Toggle Sheets!&lt;/A&gt; | &lt;A href="https://forums.autodesk.com/t5/inventor-ideas/open-files-automatically-with-quot-defer-update-quot-on-read/idi-p/7762709" target="_blank"&gt;Vault Defer Update!&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;! For administrative reasons, please mark a &lt;STRONG&gt;"Solution as solved"&lt;/STRONG&gt; when the issue is solved !&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 14:56:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-run-code-throuh-api-before-vault-check-in/m-p/8608634#M94677</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2019-02-20T14:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to run code throuh API before Vault Check-In?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-run-code-throuh-api-before-vault-check-in/m-p/8664979#M95687</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;thx for the info. It got us further but there is still problem with it. Can you please help?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We created PRE and POST events (CheckinFileEvents_Pre , CheckinFileEvents_Post) according the code.&lt;BR /&gt;The OnLoad function is supposed to register event handler, and it is called from Activate function of the add-in.&lt;BR /&gt;HOwever, when pushing Check-in button, no PRE or POST actions are performed.&lt;BR /&gt;When debugging, the following error message can be seen during registration of the event handler: "The runtime is unable to evaluate this expression", see the picture:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="InventorCheckINAPIProblem.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/614945iD088C63792E7728E/image-size/large?v=v2&amp;amp;px=999" role="button" title="InventorCheckINAPIProblem.png" alt="InventorCheckINAPIProblem.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 08:57:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-run-code-throuh-api-before-vault-check-in/m-p/8664979#M95687</guid>
      <dc:creator>Ezekiel12</dc:creator>
      <dc:date>2019-03-18T08:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to run code throuh API before Vault Check-In?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-run-code-throuh-api-before-vault-check-in/m-p/8665000#M95689</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am developing in Vb.net an I use this:&lt;/P&gt;
&lt;PRE&gt;AddHandler DocumentService.AddFileEvents.Pre, AddressOf AddFileCheckPre&lt;/PRE&gt;
&lt;P&gt;Hope this will help you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 09:07:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-run-code-throuh-api-before-vault-check-in/m-p/8665000#M95689</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2019-03-18T09:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to run code throuh API before Vault Check-In?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-run-code-throuh-api-before-vault-check-in/m-p/8665461#M95698</link>
      <description>&lt;P&gt;If not secret what workflow you are expecting to achieve?&lt;/P&gt;
&lt;P&gt;For example user tries to check in a huge assembly.... are you going to let him untill each and every component of the assembly passes your checks?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 12:17:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-run-code-throuh-api-before-vault-check-in/m-p/8665461#M95698</guid>
      <dc:creator>Maxim-CADman77</dc:creator>
      <dc:date>2019-03-18T12:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to run code throuh API before Vault Check-In?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-run-code-throuh-api-before-vault-check-in/m-p/8665524#M95699</link>
      <description>&lt;P&gt;Not secret at all. Trying to accomplish this (not &lt;SPAN&gt;sucesfull&amp;nbsp;&lt;/SPAN&gt;yet):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;User clicks Check-In&lt;/LI&gt;
&lt;LI&gt;The procedure will check several thing in assembly (iproperties by company standard etc...)&lt;/LI&gt;
&lt;LI&gt;If correct, check-In will continue&lt;/LI&gt;
&lt;LI&gt;If not correct, there will be message window with information what user needs to correct in assembly and the Check*in will abort&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 12:36:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-run-code-throuh-api-before-vault-check-in/m-p/8665524#M95699</guid>
      <dc:creator>Ezekiel12</dc:creator>
      <dc:date>2019-03-18T12:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to run code throuh API before Vault Check-In?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-run-code-throuh-api-before-vault-check-in/m-p/8666544#M95713</link>
      <description>You plan to check only IAMs?&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Mar 2019 17:35:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-run-code-throuh-api-before-vault-check-in/m-p/8666544#M95713</guid>
      <dc:creator>Maxim-CADman77</dc:creator>
      <dc:date>2019-03-18T17:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to run code throuh API before Vault Check-In?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-run-code-throuh-api-before-vault-check-in/m-p/8668427#M95740</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1173811"&gt;@Ezekiel12&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Where can I help you further with?&lt;/P&gt;
&lt;P&gt;I am using also a add in to do specific things on check in of before or after.&lt;/P&gt;
&lt;P&gt;Please let me know what is going wrong exactly?&lt;/P&gt;
&lt;P&gt;This should not be any issue...&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2019 12:35:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-run-code-throuh-api-before-vault-check-in/m-p/8668427#M95740</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2019-03-19T12:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to run code throuh API before Vault Check-In?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-run-code-throuh-api-before-vault-check-in/m-p/8670717#M95780</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/572109"&gt;@Maxim-CADman77&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anything (ipts/iams/idw..) as standard check-in dialog.&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/473476"&gt;@bradeneuropeArthur&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Well this is where we got stuck &lt;img class="lia-deferred-image lia-image-emoji" src="https://forums.autodesk.com/html/@F462EEC827775DA92CB03B7FC147D389/emoticons/1f61e.png" alt=":disappointed_face:" title=":disappointed_face:" /&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;---------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.VisualBasic;
using System.Windows.Forms;
using Autodesk.Connectivity.Explorer.Extensibility;
using Autodesk.DataManagement.Addin.Vault;
using Autodesk.Connectivity.WebServices;
using Autodesk.Connectivity.WebServicesTools;
using VDF = Autodesk.DataManagement.Client.Framework.Vault;
using Connectivity.InventorAddin.EdmAddin;
namespace MyProject.Classes
{
    public class VaultEventHandler : Autodesk.Connectivity.WebServices.IWebServiceExtension
    {
        public void OnLoad()
        {
            //Autodesk.Connectivity.WebServices.DocumentService.CheckinFileEvents.Pre += new EventHandler&amp;lt;CheckinFileCommandEventArgs&amp;gt;(addfilerunlogic);
            Autodesk.Connectivity.WebServices.DocumentService.CheckinFileEvents.Pre += CheckinFileEvents_Pre;
            Autodesk.Connectivity.WebServices.DocumentService.CheckinFileEvents.Post += CheckinFileEvents_Post;
        }

        private void CheckinFileEvents_Pre(object sender, CheckinFileCommandEventArgs e)
        {
            MessageBox.Show("Pre - Check-in action");
        }

        public void CheckinFileEvents_Post(object sender, Autodesk.Connectivity.WebServices.CheckinFileCommandEventArgs e)
        {
            MessageBox.Show("Post - Check-in action");
        }
    }
}

&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Mar 2019 07:18:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-run-code-throuh-api-before-vault-check-in/m-p/8670717#M95780</guid>
      <dc:creator>Ezekiel12</dc:creator>
      <dc:date>2019-03-20T07:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to run code throuh API before Vault Check-In?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-run-code-throuh-api-before-vault-check-in/m-p/8670866#M95784</link>
      <description>&lt;P&gt;are you happy with vb.net code too?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2019 08:39:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-run-code-throuh-api-before-vault-check-in/m-p/8670866#M95784</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2019-03-20T08:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to run code throuh API before Vault Check-In?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-run-code-throuh-api-before-vault-check-in/m-p/8676330#M95897</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/473476"&gt;@bradeneuropeArthur&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So its a bit frustrating but...&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We found out that Vault BASIC does not perform any Document.Service functions. We have tested the application using PROFESSIONAL version where it works well. There is no info about it in documentation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have no idea how it will perform on Workgroup... I hope same as Professional.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2019 06:58:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-run-code-throuh-api-before-vault-check-in/m-p/8676330#M95897</guid>
      <dc:creator>Ezekiel12</dc:creator>
      <dc:date>2019-03-22T06:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to run code throuh API before Vault Check-In?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-run-code-throuh-api-before-vault-check-in/m-p/8676678#M95902</link>
      <description>&lt;P&gt;Workgroup has (mostly) the same API as Professional whereas Basic doesn't have any API functions AFAIK.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2019 10:56:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-run-code-throuh-api-before-vault-check-in/m-p/8676678#M95902</guid>
      <dc:creator>AlexFielder</dc:creator>
      <dc:date>2019-03-22T10:56:21Z</dc:date>
    </item>
  </channel>
</rss>

