<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://communities.bentley.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>How to use GDI with given impx-file in my own AddIn</title><link>https://communities.bentley.com/products/geospatial/desktop/f/bentley-map-forum/94057/how-to-use-gdi-with-given-impx-file-in-my-own-addin</link><description>I would like to use the GDI without user interface within my own C# .net AddIn. 
 I have saved settings for different WFS imports in an impx file for each import. Within my own AddIn, I have an user interface, that result in an selected impx file. After</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to use GDI with given impx-file in my own AddIn</title><link>https://communities.bentley.com/thread/282234?ContentTypeID=1</link><pubDate>Tue, 22 Apr 2014 13:23:26 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:030018e9-54dc-4dcd-9f5a-e059f21dabbb</guid><dc:creator>sha</dc:creator><description>&lt;p&gt;So sorry I didn&amp;#39;t respond earlier.&lt;/p&gt;
&lt;p&gt;@Jan - thanks, I found the code snippets. The code snippets didn&amp;#39;t cover WFS import directly, but was a help in understanding the Geospatial Data Interchange API.&lt;/p&gt;
&lt;p&gt;@Todd - the program requirements changed several times, so for a while I have used the key-in.&lt;/p&gt;
&lt;p&gt;Right now the status on the user interface is:&lt;/p&gt;
&lt;p&gt;1) to avoid the window &amp;quot;WFS connect&amp;quot;. Our users don&amp;#39;t know anything about URL, username or password. The window appears both on using the key-in and by using the GDI API.&lt;/p&gt;
&lt;p&gt;2) to avoid long wait, by trying to split &amp;quot;opening the import file&amp;quot; and &amp;quot;performing the import&amp;quot;&lt;/p&gt;
&lt;p&gt;I have the following code:&lt;/p&gt;
&lt;p&gt;using BGDI = Bentley.Geospatial.DataInterchange;&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BGDI.GDIExplorerImportsNode importsNode = BGDI.GDIExplorerAddIn.Instance.ImportsNode;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BGDI.GDIExplorerImportNode importNode = importsNode.OpenImportFile(_impxFile);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;importNode.Import(true);&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;where the method .OpenImportFile(_impxFile) opens the window &amp;quot;WFS connet&amp;quot; (I have tried the overload method, with the additionaly arguments for username and password - looked like the arguments was ignored. The impx-files contains a &amp;quot;Username&amp;quot;-parameter)&lt;/p&gt;
&lt;p&gt;Does anyone have the solution to 1) avoid the &amp;quot;WFS connect&amp;quot; windows?&lt;/p&gt;
&lt;p&gt;(and I might not be able to solve 2) by making background work on the single instance of the GDIExplorerAddIn ;-) - but I will try)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use GDI with given impx-file in my own AddIn</title><link>https://communities.bentley.com/thread/272503?ContentTypeID=1</link><pubDate>Tue, 21 Jan 2014 17:44:41 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:0b9052ce-6f18-48f6-8be4-6a4edefde5c5</guid><dc:creator>Todd Southen [Bentley]</dc:creator><description>&lt;p&gt;Hi sha,&lt;/p&gt;
&lt;p&gt;There is no documented public API to do this. Is there any reason your application cannot issue the key-in? &lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Todd.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use GDI with given impx-file in my own AddIn</title><link>https://communities.bentley.com/thread/272469?ContentTypeID=1</link><pubDate>Tue, 21 Jan 2014 13:45:13 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:ae5d6f1d-45b1-4668-b6b8-71d6b730050d</guid><dc:creator>Jan Šlegr</dc:creator><description>&lt;p&gt;Hi sha,&lt;/p&gt;
&lt;p&gt;are you BDN member? If I remember right, there were some code snippets how to use Geospatial Data Interchange API in BDN DevCon 2012 examples.&lt;/p&gt;
&lt;p&gt;With regards,&lt;/p&gt;
&lt;p&gt; &amp;nbsp;Jan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>