<?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>Dilip Bhandarkar's Activities</title><link>https://communities.bentley.com/members/4e5a5632_2d00_a20e_2d00_4600_2d00_a420_2d00_534cfc14d36e</link><description>Dilip Bhandarkar's recent activity</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>Microstation Cell Library</title><link>https://communities.bentley.com/products/microstation/f/microstation-forum/199171/microstation-cell-library</link><pubDate>Sun, 21 Jun 2020 00:40:32 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:21b3784b-fec7-444e-9f1b-5fe6a54d98ca</guid><dc:creator>Dilip Bhandarkar</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I see a new phenomenon which never happened to me before.&amp;nbsp; Cells sometimes lose all nested cells in them. It is puzzling.&lt;/p&gt;
&lt;p&gt;I copied a cell library which I wanted to update from the network to a folder in the local drive.&amp;nbsp; Then I attached the cell library on the local folder and edited some cells. I then copied the cell library back it to the network location. When I load MicroStation I see that some cells have lost all the nested cells.&amp;nbsp; If I attach the cell library on the local drive it is fine. The size and modified date of both the cell libraries are exactly the same, &amp;nbsp; Something happens to the cell library when copied to another location.&amp;nbsp; Does anyone know what the issue is?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Dilip Bhandarkar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Nested Cells</title><link>https://communities.bentley.com/products/programming/f/developers-and-programming-forum/199168/nested-cells</link><pubDate>Sat, 20 Jun 2020 16:44:50 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:5ef4803e-ef5c-4763-a7a2-8f5004ea220f</guid><dc:creator>Dilip Bhandarkar</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I see a new phenomenon which never happened to me before.&amp;nbsp; Cells sometimes lose all nested cells in them. It is puzzling.&lt;/p&gt;
&lt;p&gt;I copied a cell library which I wanted to update from the network to a folder in the local drive.&amp;nbsp; Then I attached the cell library on the local folder and edited some cells. I then copied the cell library back it to the network location. When I load MicroStation I see that some cells have lost all the nested cells.&amp;nbsp; If I attach the cell library on the local drive it is fine. The size and modified date of both the cell libraries are exactly the same, &amp;nbsp; Something happens to the cell library when copied to another location.&amp;nbsp; Does anyone know what the issue is?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Dilip Bhandarkar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Configuration Setup of MS_CELL</title><link>https://communities.bentley.com/products/administration/f/product-administration-forum/197665/configuration-setup-of-ms_cell</link><pubDate>Fri, 22 May 2020 14:49:28 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:19e44316-9e15-43fd-92f7-899567e95515</guid><dc:creator>Dilip Bhandarkar</dc:creator><description>&lt;p&gt;I am using MicroStation CONNECT 10.13.01.01 on Windows 10.&lt;/p&gt;
&lt;p&gt;The setting for &lt;strong&gt;MS_CELL&lt;/strong&gt; keeps changing back to a previously set value.&lt;/p&gt;
&lt;p&gt;I have Microstation Workset setup (&lt;strong&gt;TEST&lt;/strong&gt;) on a network.&amp;nbsp; The &lt;strong&gt;TEST.CFG&lt;/strong&gt; has &lt;strong&gt;MS_CELL&lt;/strong&gt; set up to look at two folders (&lt;strong&gt;&lt;span style="color:#0000ff;"&gt;Z:/Microstation/ALL/Cell/;Z:/Microstation/SPECIAL/cell/&lt;/span&gt;&lt;/strong&gt;).&amp;nbsp; I looked at the &lt;span style="color:#0000ff;"&gt;&lt;strong&gt;TEST.cfg&lt;/strong&gt;&lt;/span&gt; file and see that it is set correctly.&amp;nbsp; I have not set&amp;nbsp;&lt;strong&gt;MS_CELL&lt;/strong&gt; in the &lt;strong&gt;personal.ucf&lt;/strong&gt; file.&amp;nbsp; When I load Microstation the&lt;strong&gt; MS_CELL&lt;/strong&gt; reverts to a folder I used some time ago i.e. it is set to&lt;strong&gt; MS_CELL=&lt;span style="color:#ff0000;"&gt;C:/Cell Library/&lt;/span&gt;&lt;/strong&gt;. When I check my workset configuration with key in &lt;strong&gt;MDL LOAD CFGVARS WORKSET TEST &lt;/strong&gt;I see that it has changed to &lt;strong&gt;MS_CELL=&lt;span style="color:#ff0000;"&gt;C:/Cell Library/&lt;/span&gt;&lt;/strong&gt;.&amp;nbsp; Why?&amp;nbsp; It has been driving me crazy.&amp;nbsp; Where is Microstation getting this value (&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;C:/Cell Library/&lt;/span&gt;&lt;/strong&gt;) from?&amp;nbsp; Can someone help me?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Microstation CONNECT Debugging</title><link>https://communities.bentley.com/products/programming/f/developers-and-programming-forum/178775/microstation-connect-debugging</link><pubDate>Fri, 26 Apr 2019 22:01:32 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:c655a699-a1de-48b4-931c-9bcfe1c216b3</guid><dc:creator>Dilip Bhandarkar</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have Windows 10 with Microstation Connect Update 12 and SDK Update 12 and Visual Studio 2017. I have 2 issues:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The &lt;strong&gt;BuildAllExamples&lt;/strong&gt; and &lt;strong&gt;Bmake&lt;/strong&gt; works and compiles all the examples.&amp;nbsp; When I try to debug Visual Studio tries to build the app and fails with the following errors:&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:#ff0000;"&gt; Cannot open source file &amp;quot;-config-eccp.h&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; error directive: Data Alignment must be defined in basedefs.h&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have configured the correct&lt;strong&gt; Include Directories &lt;/strong&gt;and&lt;strong&gt; Library Directories&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Can anyone tell me what am I doing wrong?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2. Once an app is loaded, it won&amp;#39;t unload and I have to exit Microstation and get back in to unload it.&lt;/p&gt;
&lt;p&gt;Dilip Bhandarkar&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>scanning cell library</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/193429/scanning-cell-library</link><pubDate>Thu, 05 Mar 2020 16:48:49 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:0b9c9e89-7905-4748-a5bd-192a7ba4ebc3</guid><dc:creator>Dilip Bhandarkar</dc:creator><description>&lt;p&gt;I am trying write a VBA app to scan a cell library to substitute &lt;strong&gt;fonts&lt;/strong&gt; and &lt;strong&gt;levels&lt;/strong&gt; in cells. I have written code to get into a DGN file and modify cells&amp;#39; fonts and levels and it works, but when I tried &lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;opened a cell library like a DGN file&lt;/strong&gt; &lt;/span&gt;and run the app it won&amp;#39;t work.&amp;nbsp; The app won&amp;#39;t iterate thru&amp;#39; cells like it does for a DGN file.&amp;nbsp; The Element Enumerator won&amp;#39;t&amp;nbsp; return cells. It just returns &lt;strong&gt;msdElementTypeDesignFileHeader&lt;/strong&gt;, &lt;strong&gt;msdElementTypeTypeTable&lt;/strong&gt;, &lt;strong&gt;msdElementTypeMicrostation&lt;/strong&gt;, &lt;strong&gt;msdElementTypeViewGroup&lt;/strong&gt;, &lt;strong&gt;msdElementTypeDgnStoreHeader&lt;/strong&gt;. I thought the app will work the same way in a opened cell library file as it does an opened a DGN file.&amp;nbsp; Am I wrong in assuming this?&amp;nbsp; Does anyone know if this could be done and how to do it either in &lt;strong&gt;VBA&lt;/strong&gt; or &lt;strong&gt;MDL&lt;/strong&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Microstation CONNECT; mdl; text node element</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/184168/microstation-connect-mdl-text-node-element</link><pubDate>Sun, 18 Aug 2019 14:26:26 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:3648df52-3e52-47e5-9d7e-60cace4ef4fc</guid><dc:creator>Dilip Bhandarkar</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have tried every possible method in Microstation API to extract text from TextBlock created from a text node element, but all I get is a empty string.&amp;nbsp;&amp;nbsp; I looked at the example code in Microstation API help under &lt;strong&gt;mdlTextNode_extract&lt;/strong&gt;.&lt;/p&gt;
&lt;div class="fragment"&gt;
&lt;div class="line"&gt;ElementHandle eh (...);&lt;/div&gt;
&lt;div class="line"&gt;&lt;a class="code" href="/products/programming/f/developers-and-programming-forum/p/addpost/group__TextModule.html#gaf36446cf7bc174c103fa76918d77e773"&gt;TextBlockPtr&lt;/a&gt; textBlock = TextHandlerBase::GetFirstTextPartValue (eh);&lt;/div&gt;
&lt;div class="line"&gt;WString &lt;span class="keywordtype"&gt;string&lt;/span&gt; = textBlock-&amp;gt;ToString ();&lt;/div&gt;
&lt;div class="line"&gt;&lt;/div&gt;
&lt;div class="line"&gt;The string above is empty!!!!&lt;/div&gt;
&lt;div class="line"&gt;&lt;/div&gt;
&lt;div class="line"&gt;I also tried the following methods:&lt;/div&gt;
&lt;div class="line"&gt;&lt;/div&gt;
&lt;div class="line"&gt;&lt;strong&gt;caret-&amp;gt;GetCurrentRunCP()&lt;/strong&gt;&lt;/div&gt;
&lt;div class="line"&gt;&lt;strong&gt;caret-&amp;gt;MoveToNextCharacter,() &lt;/strong&gt;&lt;/div&gt;
&lt;strong&gt;caret-&amp;gt;MoveToNextParagraph ()&lt;/strong&gt;&lt;/div&gt;
&lt;div class="fragment"&gt;&lt;strong&gt;caret-&amp;gt;MoveToNextField()&lt;/strong&gt;&lt;/div&gt;
&lt;div class="fragment"&gt;&lt;/div&gt;
&lt;div class="fragment"&gt;but I still can&amp;#39;t get the text string in a text node. Can someone tell me how to extract text string from a text node.&lt;/div&gt;
&lt;div class="fragment"&gt;&lt;/div&gt;
&lt;div class="fragment"&gt;There should be more documentation on TextBlock.&amp;nbsp; It is difficult to understand the various components of a text block like TextBlockProperties, TextField, ParaGraphProperties, RunProperties, etc.&lt;/div&gt;
&lt;div class="fragment"&gt;&lt;/div&gt;
&lt;div class="contents"&gt;
&lt;div class="memitem"&gt;
&lt;div class="memdoc"&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>MDL, C++,Scanning</title><link>https://communities.bentley.com/products/programming/f/developers-and-programming-forum/182949/mdl-c-scanning</link><pubDate>Wed, 24 Jul 2019 00:18:05 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:84b0a595-dfe2-4561-9356-33324522a126</guid><dc:creator>Dilip Bhandarkar</dc:creator><description>&lt;p&gt;&amp;nbsp; &lt;/p&gt;
&lt;p&gt;I have a strange problem when scanning a file.&amp;nbsp; In the code below I am looking for cells with name beginning with characters &amp;quot;&lt;strong&gt;XX&lt;/strong&gt;&amp;quot;.&amp;nbsp; It finds all the cells which start with characters &amp;quot;&lt;strong&gt;XX&lt;/strong&gt;&amp;quot; except cell: &lt;strong&gt;XXDWG.&amp;nbsp;&amp;nbsp; &lt;/strong&gt;Now if I comment out the 3 lines above the line &lt;strong&gt;mdlScanCriteria_setElementTypeTest(scP, NULL, sizeof(typeMask));&amp;nbsp;&lt;/strong&gt; and uncomment that line it works!&amp;nbsp; I don&amp;#39;t understand why that piece of code wont find &lt;strong&gt;XXDWG&lt;/strong&gt; but find other similar cells like &lt;strong&gt;XXMAIN&lt;/strong&gt;, &lt;strong&gt;XXTIT1&lt;/strong&gt;, &lt;strong&gt;XXSHT&lt;/strong&gt;, etc.&amp;nbsp; I have tried compressing the file but it does not help.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;scP = mdlScanCriteria_create();
	status = mdlScanCriteria_setReturnType (scP, MSSCANCRIT_RETURN_FILEPOS, FALSE, TRUE);
	memset(typeMask, 0, sizeof(typeMask));

	typeMask[0] = TMSK0_CELL_HEADER;
	typeMask[4] = TMSK4_MICROSTATION_ELM;
	mdlScanCriteria_setElementTypeTest (scP, typeMask, sizeof(typeMask));
	//mdlScanCriteria_setElementTypeTest(scP, NULL, sizeof(typeMask));

	eofPos = mdlElement_getFilePos ( FILEPOS_EOF, NULL);
	modelRef = mdlModelRef_getActive();
	mdlScanCriteria_setModel (scP, MASTERFILE);
	filePos = 0L;
	actualPos = 0L;
	do
		{
		scanWords = sizeof (elemAddr) / sizeof (short); 

		status = mdlScanCriteria_scan ( scP, elemAddr, &amp;amp;scanWords, &amp;amp;filePos); 
		numAddr = scanWords/sizeof (short); 
		for ( i = 0 ; i &amp;lt; numAddr; i++)
			{
			if (elemAddr [i] &amp;gt;= eofPos)
   				break; 
			if (elemAddr [i] &amp;lt; actualPos)
    				continue; 
			mdlElmdscr_read ( &amp;amp;cellDP, elemAddr [i], ACTIVE_FILE, FALSE, &amp;amp;actualPos); 
			if (cellDP-&amp;gt;el.ehdr.type == CELL_HEADER_ELM)
				{
				mdlCell_extract ( NULL, NULL, NULL, NULL, cellname, MAX_CELLNAME_LENGTH, &amp;amp;cellDP-&amp;gt;el);	
				if (cellname [0] == L&amp;#39;X&amp;#39; &amp;amp;&amp;amp; cellname [1] == L&amp;#39;X&amp;#39;)
					{
					replace = 0;
					status = mdlElmdscr_operation ( cellDP, (PFElemOperation )putTitleInfo, &amp;amp;dummy, ELMD_ELEMENT | ELMD_PRE_HDR | ELMD_PRE_NESTEDHDR);
					if (replace)
						status = mdlElmdscr_rewrite ( cellDP, NULL, actualPos);
					}
				}
			mdlElmdscr_freeAll (&amp;amp;cellDP);
			}
    		} while (status == BUFF_FULL); 
	return SUCCESS;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://communities.bentley.com/cfs-file/__key/communityserver-discussions-components-files/343380/XXXX084.001.DGN"&gt;communities.bentley.com/.../XXXX084.001.DGN&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Let me Help You</title><link>https://communities.bentley.com/achievements/687f4b6d-e18a-4e55-836c-49926ca2c9d9</link><pubDate>Thu, 25 Jul 2019 00:47:23 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:d62010bd-a9f6-4dda-aa70-c7c80baf16ce</guid><dc:creator /><description>Answer a question that is verified as helpful or correct.</description></item><item><title>C++ Scanning File issue</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/182996/c-scanning-file-issue</link><pubDate>Wed, 24 Jul 2019 15:05:37 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:4c9e7224-ba40-4d01-8070-eeb38fed57bb</guid><dc:creator>Dilip Bhandarkar</dc:creator><description>&lt;p&gt;I have a strange problem when scanning a file.&amp;nbsp; In the code below I am looking for cells with name beginning with characters &amp;quot;&lt;strong&gt;XX&lt;/strong&gt;&amp;quot;.&amp;nbsp; It finds all the cells which start with characters &amp;quot;&lt;strong&gt;XX&lt;/strong&gt;&amp;quot; except cell: &lt;strong&gt;XXDWG.&amp;nbsp;&amp;nbsp; &lt;/strong&gt;Now if I comment out the 3 lines above the line &lt;strong&gt;mdlScanCriteria_setElementTypeTest(scP, NULL, sizeof(typeMask));&amp;nbsp;&lt;/strong&gt; and uncomment that line it works!&amp;nbsp; I don&amp;#39;t understand why that piece of code wont find &lt;strong&gt;XXDWG&lt;/strong&gt; but find other similar cells like &lt;strong&gt;XXMAIN&lt;/strong&gt;, &lt;strong&gt;XXTIT1&lt;/strong&gt;, &lt;strong&gt;XXSHT&lt;/strong&gt;, etc.&amp;nbsp; I have tried compressing the file but it does not help.&lt;/p&gt;
&lt;div class="content-scrollable-wrapper" style="overflow:auto;"&gt;
&lt;div class="evolution-code-editor theme-clouds"&gt;&lt;pre class="ui-code" data-mode="text"&gt;scP = mdlScanCriteria_create();
	status = mdlScanCriteria_setReturnType (scP, MSSCANCRIT_RETURN_FILEPOS, FALSE, TRUE);
	memset(typeMask, 0, sizeof(typeMask));

	typeMask[0] = TMSK0_CELL_HEADER;
	typeMask[4] = TMSK4_MICROSTATION_ELM;
	mdlScanCriteria_setElementTypeTest (scP, typeMask, sizeof(typeMask));
	//mdlScanCriteria_setElementTypeTest(scP, NULL, sizeof(typeMask));

	eofPos = mdlElement_getFilePos ( FILEPOS_EOF, NULL);
	modelRef = mdlModelRef_getActive();
	mdlScanCriteria_setModel (scP, MASTERFILE);
	filePos = 0L;
	actualPos = 0L;
	do
		{
		scanWords = sizeof (elemAddr) / sizeof (short); 

		status = mdlScanCriteria_scan ( scP, elemAddr, &amp;amp;scanWords, &amp;amp;filePos); 
		numAddr = scanWords/sizeof (short); 
		for ( i = 0 ; i &amp;lt; numAddr; i++)
			{
			if (elemAddr [i] &amp;gt;= eofPos)
   				break; 
			if (elemAddr [i] &amp;lt; actualPos)
    				continue; 
			mdlElmdscr_read ( &amp;amp;cellDP, elemAddr [i], ACTIVE_FILE, FALSE, &amp;amp;actualPos); 
			if (cellDP-&amp;gt;el.ehdr.type == CELL_HEADER_ELM)
				{
				mdlCell_extract ( NULL, NULL, NULL, NULL, cellname, MAX_CELLNAME_LENGTH, &amp;amp;cellDP-&amp;gt;el);	
				if (cellname [0] == L&amp;#39;X&amp;#39; &amp;amp;&amp;amp; cellname [1] == L&amp;#39;X&amp;#39;)
					{
					replace = 0;
					status = mdlElmdscr_operation ( cellDP, (PFElemOperation )putTitleInfo, &amp;amp;dummy, ELMD_ELEMENT | ELMD_PRE_HDR | ELMD_PRE_NESTEDHDR);
					if (replace)
						status = mdlElmdscr_rewrite ( cellDP, NULL, actualPos);
					}
				}
			mdlElmdscr_freeAll (&amp;amp;cellDP);
			}
    		} while (status == BUFF_FULL); 
	return SUCCESS;&lt;/pre&gt;&lt;br /&gt;
&lt;div class=" ace_editor ace-clouds" style="height:297px;width:100%;"&gt;&lt;a href="https://communities.bentley.com/cfs-file/__key/communityserver-discussions-components-files/343173/Amtrak_5F00_16x28-Border.dgn"&gt;communities.bentley.com/.../Amtrak_5F00_16x28-Border.dgn&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="content-scrollable-wrapper" style="overflow:auto;"&gt;
&lt;div class="evolution-code-editor theme-clouds"&gt;
&lt;div class=" ace_editor ace-clouds" style="height:297px;width:100%;"&gt;
&lt;div class="ace_scrollbar ace_scrollbar-v" style="bottom:17px;width:22px;"&gt;
&lt;div class="ace_scrollbar-inner" style="height:588px;width:22px;"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="ace_scrollbar ace_scrollbar-h" style="height:22px;left:47px;right:17px;"&gt;
&lt;div class="ace_scrollbar-inner" style="height:22px;width:1058px;"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style="font:inherit;height:auto;left:0px;overflow:hidden;position:absolute;top:0px;white-space:pre;width:auto;"&gt;
&lt;div style="font:inherit;height:auto;left:0px;overflow:visible;position:absolute;top:0px;white-space:pre;width:auto;"&gt;&lt;/div&gt;
&lt;div style="font-family:inherit;font-size:inherit;font-style:inherit;height:auto;left:0px;line-height:inherit;overflow:visible;position:absolute;top:0px;white-space:pre;width:auto;"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>TextBlock Enter-data-field in C++</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/179691/textblock-enter-data-field-in-c</link><pubDate>Thu, 16 May 2019 17:44:24 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:4068a5fc-f267-43ca-9b06-9b73eaa3ee10</guid><dc:creator>Dilip Bhandarkar</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am using Microstation Connect Update 12 along with the Update 12 SDK&amp;nbsp; on Windows 10.&lt;/p&gt;
&lt;p&gt;The various components of TextBlock are difficult to understand without proper documentation besides MicrostationAPI documentation. Although we are going to phase out Enter-data-fields in the future and convert existing Enter data-field to item types, till we do so we still have to deal with it.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;I had seen Young An Fu&amp;#39;s response to someone else&amp;#39;s question about 3 years ago, addressed some of the issues.&amp;nbsp; I still need a little more information. Here is Yong An Fu&amp;#39;s previous code.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;void queryEDF(WCharCP  unparsed)
	{
	ElementHandle eh(1325L, ACTIVEMODEL);
	ITextQueryCP textQuery = eh.GetITextQuery();
	if (!textQuery || !textQuery-&amp;gt;IsTextElement(eh))
		{
		mdlDialog_dmsgsPrint(L&amp;quot;Your identified element is not a text element&amp;quot;);
		return;
		}
   
	ITextPartIdPtr textPart;
    TextBlockPtr textBlock = textQuery-&amp;gt;GetTextPart(eh, *textPart);
	if (textBlock.IsNull() || textBlock-&amp;gt;IsEmpty())
		{
		mdlDialog_dmsgsPrint(L&amp;quot;Your text element has no content&amp;quot;);
		return;
		}
		
	CaretPtr  caret = textBlock-&amp;gt;CreateStartCaret();
	do
		{
		EdfCharStreamCP edf = dynamic_cast&amp;lt;EdfCharStreamCP&amp;gt;(caret-&amp;gt;GetCurrentRunCP());
        if (NULL != edf)
			{   // This run is a EDF
			WString str = edf-&amp;gt;GetString();
			mdlDialog_dmsgsPrint(str.GetWCharCP());
			}
		}while (SUCCESS == caret-&amp;gt;MoveToNextRun());
	}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I would like to know how to extract Number of EdFields and for each: length, start and justification.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Ask A Question II</title><link>https://communities.bentley.com/achievements/cd3cd235-25c1-476e-bb88-33a5705ca45a</link><pubDate>Fri, 01 Feb 2019 08:44:30 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:e88a5787-d3e8-4475-a325-75799adac021</guid><dc:creator /><description>Ask 10 questions in a forum.</description></item><item><title>MDL Level</title><link>https://communities.bentley.com/products/programming/f/developers-and-programming-forum/174568/mdl-level</link><pubDate>Fri, 01 Feb 2019 15:28:27 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:dab1a24b-4f59-4fa0-bce9-9c9c86254a3c</guid><dc:creator>Dilip Bhandarkar</dc:creator><description>&lt;p&gt;I has asked this question earlier but the issue was not really resolved.&amp;nbsp; I am going nuts with this.&lt;/p&gt;
&lt;p&gt;I have to set elements to pre-V8 version of levels like &amp;quot;Level 10&amp;quot;, &amp;quot;Level 21&amp;quot;, etc.&lt;/p&gt;
&lt;p&gt;If the level is not used, then&amp;nbsp;&lt;strong&gt;mdlLevel_isValidByName&lt;/strong&gt; returns &lt;strong&gt;FALSE&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Then since the level is not valid I use&amp;nbsp;&lt;strong&gt;mdlLevel_create&lt;/strong&gt; which returns&amp;nbsp;&lt;strong&gt;MSGID_errorLevelNameIsDuplicate.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;So my question is how to get &lt;strong&gt;LevelID&lt;/strong&gt; of say &amp;quot;Level 10&amp;quot; when it has not been used?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;My code is shown below.&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000080;"&gt;UInt32 getLevelIDfromName (char* strLevel)&lt;/span&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;br /&gt;&lt;span style="color:#000080;"&gt; {&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000080;"&gt; MSWChar mswLevelName[MAX_LEVEL_NAME_LENGTH];&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000080;"&gt; int len;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000080;"&gt; UInt32 levelID;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000080;"&gt; DgnModelRefP modelRef = NULL;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000080;"&gt; BoolInt bInt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000080;"&gt; StatusInt sInt;&lt;/span&gt;&lt;br /&gt; &lt;br /&gt;&lt;span style="color:#000080;"&gt; //strcpy (strLevel, &amp;quot;LLevel 10&amp;quot;); // Works - creates level &amp;quot;LLevel 10&amp;quot; if does not exist&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000080;"&gt; //strcpy (strLevel, &amp;quot;10&amp;quot;); // Works -- creates level &amp;quot;10&amp;quot; if does not exist&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000080;"&gt; strcpy (strLevel, &amp;quot;Level 10&amp;quot;);//Does not work if Level 10 is not used - &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000080;"&gt; //mdlLevel_isValidByName fails FALSE&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000080;"&gt; //mdlLevel_create fails returns 9 (MSGID_errorLevelNameIsDuplicate)&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000080;"&gt; //strcpy (strLevel, &amp;quot;Level 10&amp;quot;); //Works not work if Level 10 is used&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000080;"&gt; len = mdlCnv_convertMultibyteToUnicode (strLevel, -1,mswLevelName, MAX_LEVEL_NAME_LENGTH); &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000080;"&gt; modelRef = mdlModelRef_getActive();&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000080;"&gt; bInt = mdlLevel_isValidByName (mdlModelRef_getActive(),LEVEL_NULL_ID,mswLevelName);&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000080;"&gt; if (bInt == TRUE)&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000080;"&gt; mdlLevel_getIdFromName (&amp;amp;levelID,mdlModelRef_getActive(),LEVEL_NULL_ID,mswLevelName);&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000080;"&gt; else&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000080;"&gt; sInt = mdlLevel_create (&amp;amp;levelID,mdlModelRef_getActive(),mswLevelName,LEVEL_NULL_CODE);&lt;/span&gt;&lt;br /&gt; &lt;br /&gt;&lt;span style="color:#000080;"&gt; mdlLevelTable_rewrite(mdlModelRef_getActive());&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000080;"&gt; return levelID;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000080;"&gt; }&lt;/span&gt;&lt;/p&gt;
&lt;p style="padding-left:60px;"&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Microstation 8i MDL: Getting LevelID</title><link>https://communities.bentley.com/products/programming/f/developers-and-programming-forum/173581/microstation-8i-mdl-getting-levelid</link><pubDate>Sun, 13 Jan 2019 16:43:49 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:3f85852c-5021-4ab1-a07f-b609f8554500</guid><dc:creator>Dilip Bhandarkar</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am trying to get the LevelID of the original levels (1 to 63 as Level 1, Level 2, etc.) using the function mdlLevel_getIdFromName.&amp;nbsp; But I notice that I get an error (wrong LevelID) when I try to get LevelID of an &lt;span style="color:#0000ff;text-decoration:underline;"&gt;&lt;strong&gt;unused&lt;/strong&gt;&lt;/span&gt; level like &amp;quot;Level 11&amp;quot;.&amp;nbsp; If the level is &lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;&lt;span style="color:#0000ff;text-decoration:underline;"&gt;used&lt;/span&gt; &lt;/strong&gt;&lt;/span&gt;in the DGN file then the function works.&amp;nbsp; I am not getting something here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Microstation Connect debugging using VS2015</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/153561/microstation-connect-debugging-using-vs2015</link><pubDate>Wed, 02 May 2018 13:54:45 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:0e1f070c-c6f1-4c07-856e-c95a0bb23d3c</guid><dc:creator>Dilip Bhandarkar</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have been trying to debug one of the example code in Microstation CONNECT 10.08.00.37 using Visual Studio 2015 Community Edition.&amp;nbsp; Is there any documentation on how to go about doing this.&amp;nbsp; Every document I find either is for 8i or a different version of Visual Studio.&amp;nbsp; I can&amp;#39;t seem to be able to even locate where to specify to Visual Studio about the location of the &lt;strong&gt;DLL&lt;/strong&gt;.&amp;nbsp; I also find that it needs the location of the pdb file (in the mdlApps folder).&amp;nbsp; It would be nice for Bentley to create a documentation which which outlines the whole debug process.&lt;/p&gt;
&lt;p&gt;If anyone has this info, I would greatly appreciate it.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Microstation CONNECT Tag</title><link>https://communities.bentley.com/products/programming/f/developers-and-programming-forum/151823/microstation-connect-tag</link><pubDate>Wed, 11 Apr 2018 16:14:26 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:d1cff85a-b781-4edb-b28a-dd0ac1241732</guid><dc:creator>Dilip Bhandarkar</dc:creator><description>&lt;p&gt;I am in the process of migrating from Microstation 8i to Microstation CONNECT (Version &lt;strong&gt;10.04.00.46&lt;/strong&gt;).&amp;nbsp; I had an app in VBA to create cells and attach tags to it.&amp;nbsp; It works in Microstation CONNECT, except that the tags are visible in spite of the the hidden property being set&amp;nbsp; to true (&lt;strong&gt;.IsHidden = True&lt;/strong&gt;) in the tag definition.&amp;nbsp; The tags are hidden in 8i.&amp;nbsp; When I go to edit the tags, the Display property is set with check mark, when it should have been unchecked.&amp;nbsp; I even tried to set the hidden property while attaching the cell as shown below.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;strong&gt;Set oTagDef = oTagDefs(&amp;quot;ID&amp;quot;)&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; oTagDef.IsConstant = False&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:#ff0000;"&gt;oTagDef.IsHidden = True&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set cellTag = oCell.AddTag(oTagDef)&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cellTag.Value = vID&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cellTag.Rewrite&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Looks like the tags get set to display the tags regardless of the setting in VBA.&amp;nbsp; Does anyone know what is the issue here?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Dilip Bhandarkar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>