<?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>level lock does not applies shared cells</title><link>https://communities.bentley.com/products/microstation/f/microstation-forum/104290/level-lock-does-not-applies-shared-cells</link><description>Hi all, 
 I have a key-in script to select all elements on a locked level and then calculate the length of the selected elements: 
 fit view extended;lock level on;active level = ln_piling;choose all;measure length;xy=0,0;lock level off 
 When I run this</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: level lock does not applies shared cells</title><link>https://communities.bentley.com/thread/312839?ContentTypeID=1</link><pubDate>Mon, 02 Feb 2015 07:39:20 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:06642dd3-05de-4c61-906c-05c61ce9ff0c</guid><dc:creator>Lorys</dc:creator><description>&lt;p&gt;ok still run your keyin , but then look at the power selector and choose the remove option or just click off shared cells&lt;/p&gt;
&lt;p&gt;the selection set should still be active so clicking on measure length tool or keyin measure length &amp;nbsp;will still give you the answer you seek without shared cells dropped as they are unselected.. &amp;nbsp;its only 3 or so &amp;nbsp;clicks extra &amp;nbsp;to your script &amp;nbsp;not really going to slow your productivity &amp;nbsp;for one file ...&lt;/p&gt;
&lt;p&gt;You dont &amp;nbsp;need VBA brain to record a vba macro it either does what you want or it doesnt and &amp;nbsp;if you can read basic &amp;nbsp;and can recognise a keyin command then in the vba editor you may just &amp;nbsp;find the keyin you need &amp;nbsp;about 8 out 10 &amp;nbsp;times this works for most tasks...&lt;/p&gt;
&lt;p&gt;my approach is look in help for a command&lt;/p&gt;
&lt;p&gt;then look in the keyin window for keyin combinations or sequences then look for set item tool settings &amp;nbsp;for &amp;nbsp;number variables to the keyins ( search this forum for set item tool settings and Ask Inga )&lt;/p&gt;
&lt;p&gt;then I try a simple basic macro recorder to see if I can get a keyin ( but Bentley will do away with basic sooner than later)&lt;/p&gt;
&lt;p&gt;then last of all I try VBA macro recorder...&lt;/p&gt;
&lt;p&gt;and if its something &amp;nbsp;I need to do often I will take all the keyins and make and &amp;quot;action string &amp;quot; script and assign that to custom Function Key ...very very cool ...I love the F keys...I even use them &amp;nbsp;to run macros , vba , mdls, script files etc&lt;/p&gt;
&lt;p&gt;Very very big time saver...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: level lock does not applies shared cells</title><link>https://communities.bentley.com/thread/312766?ContentTypeID=1</link><pubDate>Sat, 31 Jan 2015 08:01:45 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:8d6fffcf-e8f0-4d76-88e5-e6766665f2df</guid><dc:creator>TSL</dc:creator><description>Hi Lorys&lt;br /&gt;
Yes I know... shared cells... the came over from a dwg-file, copied them into my dgn-file.&lt;br /&gt;
The script is all about the measure length and area so I can get the result quick and fill them in a material bill. If have to break it up then it is best to do everything step by step. I think shared cell are the problem to deal with.&lt;br /&gt;
For now I will screen the dgn-file first on all shared cells en drop them to normal cells.&lt;br /&gt;
About VBA... I have no VBA-brain. Me stupido...&lt;br /&gt;
Thanks for your insight.&lt;br /&gt;
Jean&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: level lock does not applies shared cells</title><link>https://communities.bentley.com/thread/312753?ContentTypeID=1</link><pubDate>Sat, 31 Jan 2015 01:10:47 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:7128043b-0a24-4e69-957b-5cff053caa54</guid><dc:creator>Lorys</dc:creator><description>&lt;p&gt;[quote user=&amp;quot;TSL&amp;quot;]&lt;/p&gt;
&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;I have a key-in script to select all elements on a locked level and then calculate the length of the selected elements:&lt;/p&gt;
&lt;p style="margin-left:30px;"&gt;fit view extended;lock level on;active level = ln_piling;choose all;measure length;xy=0,0;lock level off&lt;/p&gt;
&lt;p&gt;When I run this key-in it is not only selecting all the elements on the locked level [ln_piling] but it also selects shared cells on a totally different level. When I drop the shared cells to normal cells everything works fine. Test file available via e-mail request.&lt;/p&gt;
&lt;p&gt;Is this a bug or is something wrong with my key-in script.&lt;/p&gt;
&lt;p&gt;MS:08.11.09.654 / Inroads 08.11.09.788&lt;/p&gt;
&lt;p&gt;Jean Castro&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;
&lt;p&gt;[/quote]Another reason to not use shared cells...( my pet hate see previous rants) ....&lt;/p&gt;
&lt;p&gt;Alternatively just use the power selector to select the level and deselect &amp;nbsp;shared cells from the type &amp;nbsp;then use the measure length tool to give you the length of you selection of all elements on you chosen level excluding shared cells&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:12px;"&gt;or if you still want your script then &amp;nbsp;modify your &amp;nbsp;keyin &amp;nbsp;takeout the measure part , run your script&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;then through the power selector &amp;nbsp;unclick shared cells , then use the measure tool to get the measured length without &amp;nbsp;the shared cells.&lt;/p&gt;
&lt;p&gt;You could record a vba macro of &amp;nbsp;what you just did &amp;nbsp;including the modified keyin to select all and the level of choice &amp;nbsp;... or just use the select tool to modify your select all &amp;nbsp;whilst running &amp;nbsp;the vba macro recorder..MStn basic wont capture &amp;nbsp;the steps... I tried &amp;nbsp;so as to find the hidden keyins &amp;nbsp;... I did find one with basic &amp;nbsp;to switch to remove mode&amp;nbsp;&lt;/p&gt;
&lt;p&gt;POWERSELECTOR MODE REMOVE, you could put that at the end of your script&lt;/p&gt;
&lt;p&gt;fit view extended;lock level on;active level = ln_piling;choose all;xy=0,0;lock level off;POWERSELECTOR MODE REMOVE&lt;/p&gt;
&lt;p&gt;then in the power selector manually toggle off the type ie shared cells&amp;nbsp;&lt;/p&gt;
&lt;p&gt;and now as everything you want is in a selection set you can select the measure length tool or key in manually measure length and data point and you&amp;#39;ll get the length of your selection..&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>