<?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: Autocad 2014 crash when updating UDP on AddFileEvents_Post. in Vault Customization Forum</title>
    <link>https://forums.autodesk.com/t5/vault-customization-forum/autocad-2014-crash-when-updating-udp-on-addfileevents-post/m-p/5368691#M10198</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First, you shoud setup your development environment to be able to debug you extension.&lt;/P&gt;&lt;P&gt;See this for details: &lt;A target="_blank" href="http://justonesandzeros.typepad.com/blog/2010/04/debugging-a-custom-command.html"&gt;http://justonesandzeros.typepad.com/blog/2010/04/debugging-a-custom-command.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can also wrap your UpdateProperty code in a try/catch block and pop a message box in you catch block to display the exception message:&lt;/P&gt;&lt;PRE&gt;using System.Windows.Forms;

void UpdateProperty()
{
	try
	{
		//Your code here
	}
	catch (Exception e)
	{
		MessageBox.Show("UpdateProperty exception!\n" + e.ToString());
	}
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pierre&lt;/P&gt;</description>
    <pubDate>Wed, 29 Oct 2014 19:42:32 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-10-29T19:42:32Z</dc:date>
    <item>
      <title>Autocad 2014 crash when updating UDP on AddFileEvents_Post.</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/autocad-2014-crash-when-updating-udp-on-addfileevents-post/m-p/5234871#M10197</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;i working on a IWebServiceExtension to update UDP&amp;nbsp;on AddFileEvents_Post. Extention works fine from explorer client on AddFiles.&lt;/P&gt;&lt;P&gt;&amp;nbsp;When i checkin a file using Autocad Vault client (from vault Ribbon tab) Extention update the file property but Autocad Crash after update action.&lt;/P&gt;&lt;P&gt;&amp;nbsp;Autocad pop message box with error &lt;STRONG&gt;An error occurred during a vaulting operation. &lt;/STRONG&gt;before crash.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i am using Autocad and Vault Pro 2014. following is the code i am using to update property.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;        public void UpdateProperty(File file)
        {
            var results = VDF.Vault.Library.ConnectionManager.LogIn("vault2014", "Vault", "Administrator", "", VDF.Vault.Currency.Connections.AuthenticationFlags.Standard, null);
            if (!results.Success) return;
            var connection = results.Connection;

            var VaultExplorerUtil = ExplorerLoader.LoadExplorerUtil(connection.Server, connection.Vault, connection.UserID, connection.Ticket);
            var settings = Settings.LoadSettings(connection.WebServiceManager);

            var number = string.Empty;
            if (settings.DocumentNumberingScheme != null)
                number = connection.WebServiceManager.DocumentService.GenerateFileNumber(settings.DocumentNumberingScheme.SchmID, null);

            var dic = new Dictionary&amp;lt;PropDef, object&amp;gt; { { settings.PropertyToUpdate, number } };
            VaultExplorerUtil.UpdateFileProperties(file, dic);
            VaultExplorerUtil = null;
        }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Aug 2014 16:04:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/autocad-2014-crash-when-updating-udp-on-addfileevents-post/m-p/5234871#M10197</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-26T16:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: Autocad 2014 crash when updating UDP on AddFileEvents_Post.</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/autocad-2014-crash-when-updating-udp-on-addfileevents-post/m-p/5368691#M10198</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First, you shoud setup your development environment to be able to debug you extension.&lt;/P&gt;&lt;P&gt;See this for details: &lt;A target="_blank" href="http://justonesandzeros.typepad.com/blog/2010/04/debugging-a-custom-command.html"&gt;http://justonesandzeros.typepad.com/blog/2010/04/debugging-a-custom-command.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can also wrap your UpdateProperty code in a try/catch block and pop a message box in you catch block to display the exception message:&lt;/P&gt;&lt;PRE&gt;using System.Windows.Forms;

void UpdateProperty()
{
	try
	{
		//Your code here
	}
	catch (Exception e)
	{
		MessageBox.Show("UpdateProperty exception!\n" + e.ToString());
	}
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pierre&lt;/P&gt;</description>
      <pubDate>Wed, 29 Oct 2014 19:42:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/autocad-2014-crash-when-updating-udp-on-addfileevents-post/m-p/5368691#M10198</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-29T19:42:32Z</dc:date>
    </item>
  </channel>
</rss>

