<?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>Change level name to be the same as the value of an ItemType</title><link>https://communities.bentley.com/products/road___site_design/f/geopak-inroads-mx-openroads-forum/211158/change-level-name-to-be-the-same-as-the-value-of-an-itemtype</link><description>Hi, 
 I am importing ifc files into openroads and notice all the elements in an ifc are added to openroads on one level/layer. The importred ifc file has an item type called cad_layer on each element that I need as the level/layer name. Is there a way</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Change level name to be the same as the value of an ItemType</title><link>https://communities.bentley.com/thread/639873?ContentTypeID=1</link><pubDate>Thu, 18 Mar 2021 10:39:38 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:624895fe-74ca-47f7-bc28-73055d196428</guid><dc:creator>jpln</dc:creator><description>&lt;p&gt;You can do a search (Explorer) based on&amp;nbsp;&lt;span&gt;&amp;nbsp;cad_layer property then use the property dialog to change the level.&lt;br /&gt;You can also use the details dialog to filter/order to perform changes on selection of rows&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But as far as I know there is no way to script this. So VBA is the way.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change level name to be the same as the value of an ItemType</title><link>https://communities.bentley.com/thread/639485?ContentTypeID=1</link><pubDate>Tue, 16 Mar 2021 17:26:00 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:3e7e503a-34f8-41aa-a7ee-377856ccbc2b</guid><dc:creator>MaryB</dc:creator><description>&lt;p&gt;Do you mean, a way to create levels for each cad_layer item type?&lt;/p&gt;
&lt;p&gt;That would probably be something for a VBA macro. ORD functions are not included in the VBA library, but regular Microstation ones are.&lt;/p&gt;
&lt;p&gt;You would need to get a list of values for that item type, then create a level for each one found, then a way to select the appropriate elements and change them to the proper levels. You might be able to get a head start of that first step with a Microstation report, but I don&amp;#39;t know much about that.&lt;/p&gt;
&lt;p&gt;There is a dedicated forum for &lt;a href="/products/programming/microstation_programming/f/microstation-programming---forum"&gt;Programming&lt;/a&gt; if you are going to try to write something like that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change level name to be the same as the value of an ItemType</title><link>https://communities.bentley.com/thread/639393?ContentTypeID=1</link><pubDate>Tue, 16 Mar 2021 13:46:02 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:8a24b5f0-6905-46df-85a0-1569c9b3f963</guid><dc:creator>Marcus Blake</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure of a direct way to do this, however, you might try the match element command as a test.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.bentley.com/LiveContent/web/MicroStation%20Help-v17/en/MatchElementAttributes.html"&gt;https://docs.bentley.com/LiveContent/web/MicroStation%20Help-v17/en/MatchElementAttributes.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>