<?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>[v8i MDL] api for import element templates via xml</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/117083/v8i-mdl-api-for-import-element-templates-via-xml</link><description>Hi, 
 As you may or may not know, you can manually import and export the element templates as an xml file with the element template dialog. 
 Is there a way to import those xml files via some mdl api call (or any other c++, it doesn&amp;#39;t matter)? I recorded</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: [v8i MDL] api for import element templates via xml</title><link>https://communities.bentley.com/thread/360758?ContentTypeID=1</link><pubDate>Tue, 22 Mar 2016 08:59:20 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:aff47b1d-2ad4-4162-9588-7d2b8604bfd1</guid><dc:creator>Harmen gro�e Deters</dc:creator><description>Thank you very much!&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [v8i MDL] api for import element templates via xml</title><link>https://communities.bentley.com/thread/360672?ContentTypeID=1</link><pubDate>Mon, 21 Mar 2016 20:42:19 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:34e9edf0-606f-499a-bb0e-e8aef6bc17f7</guid><dc:creator>Robert Hook</dc:creator><description>&lt;p&gt;The file parameter (libFileObj) of mdlElementTemplate functions (mdlElementTemplate_getExistingTemplateInFile) are typically used in the context of dgnlib files: e.g. DgnFileP activeFile = (DgnFileP)ISessionMgr::GetActiveDgnFile ().&lt;/p&gt;
&lt;p&gt;Though I was unable to promptly locate a direct native or managed XML import/export path in the existing public MDL C or C++ API, if it is of any help still here are a couple related MicroStation key-ins that may be of use:&lt;/p&gt;
&lt;div style="direction:ltr;"&gt;
&lt;table style="border:1pt solid #a3a3a3;border-collapse:collapse;direction:ltr;" border="1" cellspacing="0" cellpadding="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="padding:4pt;border:1pt solid #a3a3a3;width:3.942in;vertical-align:top;"&gt;
&lt;p style="margin:0in;font-family:Calibri;font-size:11pt;"&gt;To Export all dgnlib data from the active file as XML, key-in&lt;/p&gt;
&lt;/td&gt;
&lt;td style="padding:4pt;border:1pt solid #a3a3a3;width:9.154in;vertical-align:top;"&gt;
&lt;p style="margin:0in;font-family:Calibri;font-size:11pt;"&gt;CUSTOMIZE EXPORT XML c:\Project\ElementTemplates.xml&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="padding:4pt;border:1pt solid #a3a3a3;width:3.942in;vertical-align:top;"&gt;
&lt;p style="margin:0in;font-family:Calibri;font-size:11pt;"&gt;To Export specific dgnlib data from the active file as XML, key-in&lt;/p&gt;
&lt;/td&gt;
&lt;td style="padding:4pt;border:1pt solid #a3a3a3;width:9.154in;vertical-align:top;"&gt;
&lt;p style="margin:0in;font-family:Calibri;font-size:11pt;"&gt;CUSTOMIZE EXPORT DATATREEXML [ToolBoxes|Tasks|MainTasks|Menus|ContextMenus|ViewPopupMenus|TentativePopupMenus|ElementTemplates]&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="padding:4pt;border:1pt solid #a3a3a3;width:3.942in;vertical-align:top;"&gt;
&lt;p style="margin:0in;font-family:Calibri;font-size:11pt;"&gt;To Import XML data into the active dgnlib, key-in&lt;/p&gt;
&lt;/td&gt;
&lt;td style="padding:4pt;border:1pt solid #a3a3a3;width:9.154in;vertical-align:top;"&gt;
&lt;p style="margin:0in;font-family:Calibri;font-size:11pt;"&gt;CUSTOMIZE IMPORT XML c:\Project\ElementTemplates.xml&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p&gt;HTH,&lt;br /&gt;Bob&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [v8i MDL] api for import element templates via xml</title><link>https://communities.bentley.com/thread/359985?ContentTypeID=1</link><pubDate>Tue, 15 Mar 2016 16:23:44 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:229684b2-3448-4d4f-8a2d-7a4cb2c2d621</guid><dc:creator>Jon Summers</dc:creator><description>&lt;p&gt;&lt;span style="font-family:courier new,courier;"&gt;mdlElementTemplate_getExistingTemplateInFile&lt;/span&gt; is the only candidate I can see.&amp;nbsp; The documentation doesn&amp;#39;t tell us whether &lt;em&gt;file&lt;/em&gt; is a DGN file or an XML file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>