<?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>John_PartTime's Activities</title><link>https://communities.bentley.com/members/9b34ec71_2d00_3290_2d00_4254_2d00_9002_2d00_f3d2eb8c097f</link><description>John_PartTime's recent activity</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>how can I import text and cells onto different levels into microstation from a csv file</title><link>https://communities.bentley.com/products/microstation/f/microstation-forum/215598/how-can-i-import-text-and-cells-onto-different-levels-into-microstation-from-a-csv-file</link><pubDate>Mon, 21 Jun 2021 13:45:09 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:0c27d8ef-7e99-40d4-9d89-7574ffedfcd8</guid><dc:creator>Lianne Muller</dc:creator><description>&lt;p&gt;I have a CSV file with the following&lt;/p&gt;
&lt;p&gt;TEXT, LEVEL, LAT, LONG, CELL&lt;/p&gt;
&lt;p&gt;I need to be able to import the CSV in one go so everything goes onto the correct level, the cell in positioned with the text desc&lt;/p&gt;
&lt;p&gt;HAs anyone created anything like this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Linear Patterning, Patterns not linked to original element.</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/215404/linear-patterning-patterns-not-linked-to-original-element</link><pubDate>Thu, 17 Jun 2021 06:49:31 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:9020bf35-66ac-4ff4-9c76-d73d8c59a450</guid><dc:creator>John_PartTime</dc:creator><description>&lt;p&gt;[CONNECT, Update 15, C++]&lt;br /&gt;Version: v10.15.02.11&lt;br /&gt;OS: Microsoft Windows 10 Pro, Build 19042.1052, 64-bit&lt;br /&gt;Hardware: Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz, 4.00 GB RAM, x64-based processor.&lt;/p&gt;
&lt;p&gt;I have a function which patterns a linestring drawn by the user.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The linestring is placed with a Class 5 (LinearPatterned) classification, and displays correctly, i.e. when patterns are turned off in the view, and does not display when patterns are turned on in the view.&lt;/p&gt;
&lt;p&gt;The pattern elements display correctly as well.&lt;/p&gt;
&lt;p&gt;However, there seems to be no link between the original linestring element that was &amp;quot;patterned&amp;quot; and the pattern elements.&amp;nbsp; If I delete the pattern elements, the original linestring is still displayed when patterns are switched &amp;quot;off&amp;quot;.&amp;nbsp; It does not display when patterns are &amp;quot;on&amp;quot;.&amp;nbsp; Likewise, if I delete the original linestring in the &amp;quot;patterns off&amp;quot; view, then the pattern elements still display when the patterns are turned &amp;quot;on&amp;quot; again.&amp;nbsp; Both the pattern elements and the original linestring element should be deleted together if either element set is deleted, which is not happening.&lt;/p&gt;
&lt;p&gt;Can somebody perhaps please show me what I am doing wrong.&amp;nbsp; Thank you in advance.&lt;/p&gt;
&lt;p&gt;My function is included below:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/*----------------------------------------------------------------------+
|                                                                       |
| name          _patternTheLineString                                   |
|                                                                       |
+----------------------------------------------------------------------*/

void    _patternTheLineString()
{
     MSElement                     ele;  // LineString
     MSElementDescr                *dp_3d;
     MSElementDescr                *eleP;  //  Pattern elements
     int                           result;
     double                        patScale;
     UInt32                        filePos;
	 UInt32                        dLevel, dColor, dWeight;
	 Int32                         dStyle;
     DgnPlatform::DgnElementClass  elem_CLASS;

     elem_CLASS = Bentley::DgnPlatform::DgnElementClass::LinearPatterned;  // = 5, Now &amp;quot;DgnElementClass LinearPatterned&amp;quot;

     /* Create and add the LineString Element */
     mdlLineString_create (&amp;amp;ele, NULL, statedata.dPointStack, numStaysPlaced+1);  // numStaysPlaced is a global var

     dLevel  = 1;  
     dColor  = 0;
     dWeight = 0;
     dStyle  = 0;

     mdlElement_setSymbology (&amp;amp;ele, &amp;amp;dColor, &amp;amp;dWeight, &amp;amp;dStyle); 

     /* Set LineString Class to &amp;#39;5&amp;#39; - to display when patterns are off in the view */
     mdlElement_setProperties (&amp;amp;ele, &amp;amp;dLevel, NULL, &amp;amp;elem_CLASS, NULL, NULL, NULL, NULL, NULL);
     mdlElement_display (&amp;amp;ele, DgnDrawMode::DRAW_MODE_Normal);
     mdlElement_add (&amp;amp;ele); 

     mdlElmdscr_new (&amp;amp;dp_3d, NULL, &amp;amp;ele);

     /* Get the filepos of the line for patterning function */
     filePos = mdlElmdscr_getFilePos(dp_3d);

     patScale = 2.0;

     result = mdlPattern_linear(&amp;amp;eleP, dp_3d, filePos, NULL, NULL, patScale, 0); //  Used the current &amp;quot;Active Pattern Cell&amp;quot;

     mdlElmdscr_display (eleP, MASTERFILE, DgnDrawMode:: DRAW_MODE_Normal);
     mdlElmdscr_add (eleP);

     mdlElmdscr_freeAll (&amp;amp;dp_3d);
     mdlElmdscr_freeAll (&amp;amp;eleP);

}
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Creating TextBlock from reading sequential ASCII file data</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/213696/creating-textblock-from-reading-sequential-ascii-file-data</link><pubDate>Tue, 11 May 2021 04:25:53 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:d717ac83-b871-4425-a4f7-c0375323620f</guid><dc:creator>John_PartTime</dc:creator><description>&lt;p&gt;I am reading &amp;quot;LABEL X Y&amp;quot; values from an ASCII file, format as per below.&lt;/p&gt;
&lt;p&gt;+122400 -9941.45 -122400.00&lt;br /&gt;+122000 -9941.45 -122000.00&lt;br /&gt;+121600 -9941.45 -121600.00&lt;/p&gt;
&lt;p&gt;Using CONNECT SDK and C++ code.&lt;/p&gt;
&lt;p&gt;I create a TextBlock and place it in the model, no issues.&amp;nbsp; The problem is that the SetUserOrigin() and Label for all three labels, remains the same for all three lines of the file (uses first line data).&amp;nbsp; All lines in the file are read perfectly.&amp;nbsp; Yes, the fclose() is outside the while(&amp;quot;file open&amp;quot;) loop.&lt;/p&gt;
&lt;p&gt;So, basically, the Label in line 1 (+122400) is placed in the model three times, at the same Origin.&lt;/p&gt;
&lt;p&gt;My question is : Is there a way to &amp;quot;over-ride&amp;quot; the textblock values for subsequent lines/labels in the ASCII file? It appears that the new &amp;quot;Label&amp;quot; and X,Y values are blatantly ignored by sequential data from the ASCII file.&amp;nbsp; It seems that TextBlockPtr textBlock1 = TextBlock::Create (*tbProps, *paraProps, *runProps, *ISessionMgr::GetActiveDgnModelP()); does not over-ride the previous instance of textBlock1?&lt;/p&gt;
&lt;p&gt;The main three lines of code are as below:&lt;/p&gt;
&lt;p&gt;TextBlockPtr textBlock1 = TextBlock::Create (*tbProps, *paraProps, *runProps, *ISessionMgr::GetActiveDgnModelP());&lt;/p&gt;
&lt;p&gt;textBlock1-&amp;gt;SetUserOrigin (origin);&lt;/p&gt;
&lt;p&gt;textBlock1-&amp;gt;SetOrientation (vertMatrix);&lt;/p&gt;
&lt;p&gt;I am sure an answer can be provided without me showing all my code here?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If anybody can provide some clarity on this, it would be greatly appreciated.&amp;nbsp; Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Upgrading V8i MDL Apps to Connect</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/138805/upgrading-v8i-mdl-apps-to-connect</link><pubDate>Fri, 21 Jul 2017 12:30:42 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:38fd5fa2-742f-4dc1-b224-acaa40e8a535</guid><dc:creator>John_PartTime</dc:creator><description>&lt;p&gt;&lt;span&gt;Is there any documentation on the absolute basic essentials to implement when porting from V8i mdl&amp;#39;s to Connect?. &amp;nbsp;I have written a few mdls in the past and want to now re-compile them for Connect. &amp;nbsp;I have no idea where to start, and am not familiar with Windows programming. &amp;nbsp;I previously made use of Select Series III SDK - I am lost in unfamiliar territory. &amp;nbsp;I am hoping there is a fairly easy way out!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Ask A Question I</title><link>https://communities.bentley.com/achievements/460ac7df-7ccc-4c42-a204-9e05eef3be09</link><pubDate>Fri, 21 Jul 2017 01:32:16 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:095cfd44-89fe-401c-865f-1a8653393369</guid><dc:creator /><description>Ask a question in a forum.</description></item><item><title>Connect &amp;quot;Examples&amp;quot; not compiling</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/116846/connect-examples-not-compiling</link><pubDate>Wed, 09 Mar 2016 07:04:07 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:d73ddd5a-206d-4d67-a218-a884cbf1940e</guid><dc:creator>John_PartTime</dc:creator><description>&lt;p&gt;I have recently installed MicroStation Connect. &amp;nbsp;I have dabbled a bit with mdl programming in V8i, so I want to attempt to convert my apps to Connect. &amp;nbsp;Just to get my environment correct, I tried to &amp;#39;build&amp;#39; all the example files by using: &amp;nbsp;C:\Program Files\Bentley\MicroStationCONNECTSDK\examples\buildallexamples.bat after running:&amp;nbsp;C:\Program Files\Bentley\MicroStationCONNECTSDK\MicroStationDeveloperShell.bat&lt;/p&gt;
&lt;p&gt;I see in RED - &amp;quot;BMAKE: call trace&amp;quot; - and it refers to a line number in each of the .mke files&lt;/p&gt;
&lt;p&gt;I also see for each build attempt: &amp;nbsp;&amp;quot; &amp;#39;cl&amp;#39; is not recognized as an internal or external command.&amp;quot;&lt;/p&gt;
&lt;p&gt;I am using Windows 10 and Visual Studio Express 13 (Newly loaded - I do not use it for any other programming)&lt;/p&gt;
&lt;p&gt;Can anyone offer me any quick pointers on how to at least get the Connect Examples compiled, so that at the very least I know that my environment is correctly set up. &amp;nbsp;Then I will begin the daunting task of attempting to convert some of my V8i mdl code!&lt;/p&gt;
&lt;p&gt;Many thanks in advance.&lt;/p&gt;
&lt;p&gt;&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><item><title>Upgrade from Ver 8i to 10</title><link>https://communities.bentley.com/communities/other_communities/licensing_cloud_and_web_services/f/forum/116500/upgrade-from-ver-8i-to-10</link><pubDate>Mon, 29 Feb 2016 07:34:02 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:61b865e1-6fec-4459-82eb-2d47f07ce295</guid><dc:creator>John_PartTime</dc:creator><description>&lt;p&gt;As a Open License subscriber, currently using V8i-SS3 - Am I allowed to install Ver 10 on the same workstation, and use both versions (not at the same time) - in order to take myself through a transitional learning phase?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>