<?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/"><channel><title>12-如何获取imodel文件的odbc连接</title><link>https://communities.bentley.com/communities/other_communities/chinafirst/w/chinawiki/21541/12-imodelodbc</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>12-如何获取imodel文件的odbc连接</title><link>https://communities.bentley.com/communities/other_communities/chinafirst/w/chinawiki/21541/12-imodelodbc</link><pubDate>Mon, 25 May 2015 08:37:10 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:ed29f6d3-7673-4318-8478-e19364854e44</guid><dc:creator>lijun.ma</dc:creator><comments>https://communities.bentley.com/communities/other_communities/chinafirst/w/chinawiki/21541/12-imodelodbc#comments</comments><description>Current Revision posted to 技术资料库 by lijun.ma on 5/25/2015 8:37:10 AM&lt;br /&gt;
&lt;p&gt;数据源连接字符串格式是固定的，需要以DSN=i-model datasource开头。示例代码如下：&lt;/p&gt;
&lt;pre class="brush: applescript; fontsize: 100; first-line: 1; "&gt;                    string connectionString = &amp;quot;DSN=i-model datasource;imodel=&amp;quot; + fileName; // C:\\SimbaEngineSDK_8.0.2.3_bently_preview\\SimbaEngineSDK_8.0.2.3_bently_preview\\Databases\\Text\\PM-Week 16.i.dgn;&amp;quot;;
                    connection = new OdbcConnection (connectionString);
                    connection.Open ();&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: imodel odbc&lt;/div&gt;
</description></item></channel></rss>