<?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>Tom Torell's Activities</title><link>https://communities.bentley.com/members/42dcc7ff_2d00_d701_2d00_4d51_2d00_9559_2d00_d51723011fd0</link><description>Tom Torell's recent activity</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>insert statement kills my opencursorWithID</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/129062/insert-statement-kills-my-opencursorwithid</link><pubDate>Wed, 30 Nov 2016 15:28:39 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:1d5e7c72-a30b-4752-82e3-2497ae553ad1</guid><dc:creator>John Schenk</dc:creator><description>&lt;p&gt;Hello, I have a table with MSLINK data, I query my table by using mdlDB_openCursorWithID(CursorId, query) and loop through my data I use mdlDB_processSQL(insert statement) to insert rows into my table. &amp;nbsp;The first insert works fine, but &amp;nbsp;upon the next fetch, the mdlDB_fetchRowByID returns the status of -100. &amp;nbsp;If I comment out my mdlDB_processSQL(insert statement) the cursor again queries through the complete table again.&lt;/p&gt;
&lt;p&gt;is it not possible to use the mdlDB_processSQL function within a cursor loop? &amp;nbsp;If not, what would be the alternate method? &amp;nbsp;If so, why would this be erroring? &amp;nbsp;I can cut and paste the insert statement and &amp;nbsp;manually I&amp;#39;m successful with entering the data.&lt;/p&gt;
&lt;p&gt;Thanks in advance,&lt;/p&gt;
&lt;p&gt;John Schenk&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>[MS Connect U14 MDL/C++] Replacement for referenceFile.h functions AllowActivation(), Activate() and ReleaseWriteLock()</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/209237/ms-connect-u14-mdl-c-replacement-for-referencefile-h-functions-allowactivation-activate-and-releasewritelock</link><pubDate>Tue, 02 Feb 2021 11:36:09 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:0577cb62-549c-4840-9937-fa2cebd7b6ae</guid><dc:creator>Tom Torell</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;migrating an old V8i MDL application I&amp;#39;m missing the functions AllowActivation(), Activate() and ReleaseWriteLock() formerly defined in referenceFile.h:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/*--------------------------------------------------------------------------------------+
|
|
|   $Copyright: (c) 2008 Bentley Systems, Incorporated. All rights reserved. $
|
|
+--------------------------------------------------------------------------------------*/
#pragma once


#ifdef  __cplusplus

#include &amp;lt;refernce.h&amp;gt;
#include &amp;lt;msdgnmodelref.fdf&amp;gt;
#include &amp;lt;msdgncache.fdf&amp;gt;
#include &amp;lt;viewcontext.h&amp;gt;
#include &amp;lt;vector&amp;gt;

typedef std::vector &amp;lt;struct GPArray*&amp;gt; RefClipCurves;

#ifdef REFERENCE_FILE_CLASS
/*=================================================================================**//**
* A ReferenceFile is an object that is the in-memory representation of a &amp;quot;reference file&amp;quot; attachment of one model to another. Any model
* may have multiple ReferenceFiles attached to it, and conversely any model may be referenced through many ReferenceFiles.
* Note that when a model is referenced multiple times and also has ReferenceFiles of its own (aka &amp;quot;nested reference&amp;quot;), there 
* will be a unique ReferenceFile object for each path to the child reference through each parent.
* @bsiclass                                                     Bentley Systems
+===============+===============+===============+===============+===============+======*/
struct          referenceFile : _referenceFile
{
private:
    virtual void MakeClassAbstract() = 0;

public:
    //! Get the DgnModelRef for this ReferenceFile, or NULL
    MSCORE_EXPORT DgnModelRefP              GetModelRef() const {return file_id.modelRef;}

    //! Get the DgnCache of the model this ReferenceFile displays, or NULL.
    DgnCacheP                               GetDgnCache() const {return mdlModelRef_getCache(file_id.modelRef);}

    //! Get the DgnFile holding the model this ReferenceFile displays, or NULL.
    MSDgnFileP                              GetDgnFile() const {return (MSDgnFileP) dgnCache_getDgnFile(GetDgnCache());}
    //! If this is a nested ReferenceFile, return its parent ReferenceFile. Otherwise, returns NULL.
    MSCORE_EXPORT ReferenceFileP            GetParent() const;

    //! If this is a nested ReferenceFile, get the parent&amp;#39;s DgnModelRef. Otherwise, returns NULL.
    MSCORE_EXPORT DgnModelRefP              GetParentModelRef() const;

    //! Check whether this ReferenceFile can be activated. There are various reasons why some ReferenceFiles cannot be activated. 
    //! For example, ReferenceFiles that have been geographically reprojected cannot be edited. Also self-references cannot be displayed.
    //! Also, applications can mark their ReferenceFiles as non-editable themselves.
    MSCORE_EXPORT bool                      AllowActivation() const;

    //! Activate (make editable) this ReferenceFile. If the DgnFile holding this ReferenceFile is not currently opened for write access, 
    //! this method will attempt to reopen the file for write access. If that succeeds, all of the DgnCaches of that file are emptied and
    //! then reloaded. The DgnModelRef of this ReferenceFile becomes the ActiveModel.
    //! @return SUCCESS if this ReferenceFile was successfully prompted to become the ActiveModel, and ERROR if the attempt failed.
    //! @note It is important to recognize that because the file may have been edited by another user before the ReferenceFile is activated, 
    //! the contents of the DgnCache are potentially significantly different than what the user was observing when (s)he requested the
    //! activation.
    //! @note After this call, the current command is terminated and the default command is started. This happens whether the activation
    //! process succeeds or not.
    //! @see ISessionMgr::MakeActiveModel
    MSCORE_EXPORT StatusInt                 Activate();

    //! Release the write lock for the DgnFile associated with this ReferenceFile.
    //! @param[in] releaseChildLocksToo If true, find all nested ReferenceFiles of this ReferenceFile and attempt to release their
    //! write locks too. 
    //! @see ISessionMgr::ReleaseWriteLock
    MSCORE_EXPORT StatusInt                 ReleaseWriteLock (bool releaseChildLocksToo=false);
};
#endif

#endif // __cplusplus
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t find new versions of these functions e.g. in DgnAttachment.h&lt;/p&gt;
&lt;p&gt;Any ideas?&lt;/p&gt;
&lt;p&gt;Regards, Tom&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>How to get information like copyright, product name, product version on a DLL generated using bmake</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/208693/how-to-get-information-like-copyright-product-name-product-version-on-a-dll-generated-using-bmake</link><pubDate>Wed, 20 Jan 2021 14:09:41 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:7495bc21-ad9d-4597-a374-34c3fef070ce</guid><dc:creator>Devender Choudhary</dc:creator><description>&lt;p&gt;Product: Microstation Connect Edition Update 15 and SDK&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have generated a native MDL Application(containing .ma and DLL) build on c++ using the MicroStation SDK&amp;#39;s bmake tool. When I look at the details tab on the property page of the DLL, the information like product name, product version, file version, Copyright, etc fields are empty. How to get this information on the DLL?&lt;/p&gt;
&lt;p&gt;I came across the generateAssemblyInfocpp.mki file from the mki folder. I was able to generate a file assemblyinfo.cpp using the mki file, this &lt;span&gt;assemblyinfo.cpp&lt;/span&gt;&amp;nbsp;file generated contains all the information which I need on the DLL&amp;#39;s property page. If this is the process, then how to use the generated assemblyinfo.cpp to get the required?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>[CONNECT C++] mdlElementTemplate_getElementParam() replacement</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/208547/connect-c-mdlelementtemplate_getelementparam-replacement</link><pubDate>Mon, 18 Jan 2021 09:45:44 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:256fbdc6-f204-4845-aecb-601e04998227</guid><dc:creator>Tom Torell</dc:creator><description>&lt;p&gt;Hi, I have V8i MDL code using&lt;/p&gt;
&lt;p&gt;mdlElementTemplate_getElementParam()&amp;nbsp; and&lt;/p&gt;
&lt;p&gt;mdlElementTemplate_getNumElementParams()&lt;/p&gt;
&lt;p&gt;Looking for a replacement of these functions, I searched the Connect 10 Update 14 SDK and found:&lt;/p&gt;
&lt;p&gt;ElementTemplateParamsHelper::GetEntryCount (UInt32&amp;amp; numEntries, ECN::IECInstanceCR etInstance, ElementParameterType param);&lt;/p&gt;
&lt;p&gt;ElementTemplateParamsHelper::GetElementColor(UInt32&amp;amp; color, DgnModelRefP modelRef, ECN::IECInstanceCR etInstance, UInt index=0);&lt;/p&gt;
&lt;p&gt;How do I fill the input parameter ECN::IECInstanceCR etInstance?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>[CONNECT U10 MDL] No title in a Dialog-ToolBox - DialogBoxDemo Example</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/171862/connect-u10-mdl-no-title-in-a-dialog-toolbox---dialogboxdemo-example</link><pubDate>Mon, 03 Dec 2018 13:59:13 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:bc3a03e9-f612-4e63-98c0-59dd6d180161</guid><dc:creator>Tom Torell</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;actually I&amp;#39;m migrating a V8i-MDL to Connect and had a problem, that my old Dialog Toolbox has an empty title.&lt;/p&gt;
&lt;p&gt;I installed &lt;br /&gt;&lt;br /&gt;ms10100023en_updt10.exe&amp;nbsp;&amp;nbsp; and&lt;br /&gt;mssdk10100032en.msi&lt;/p&gt;
&lt;p&gt;I was wondering, why this little flaw also is shown in the DialogBoxDemo Example delivered with the SDK?&lt;/p&gt;
&lt;p&gt;Now I found the solution, that in my code, as well in the provided example, the title is defined in the wrong place:&lt;/p&gt;
&lt;p&gt;It was defined in the DialogBoxRsc structure instead of the DItem_ToolBoxRsc structure, contained by the DialogBox.&lt;/p&gt;
&lt;p&gt;This corrected code (part of dlogdemo.r) works for me now:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/*----------------------------------------------------------------------+
|                                                                       |
|   Tool Palette Dialog Box                                             |
|                                                                       |
+----------------------------------------------------------------------*/
DialogBoxRsc DIALOGID_DialogDemoPalette =
    {
    /* Recommended attributes for tool palette frame dialog boxes */
#if defined (MSVERSION) &amp;amp;&amp;amp; (MSVERSION &amp;gt;= 0x550)
    DIALOGATTR_TOOLBOXCOMMON,
#else
    DIALOGATTR_DEFAULT | DIALOGATTR_NORIGHTICONS | DIALOGATTR_AUTOOPEN,
#endif
    XC, YC, NOHELP, LHELPCMD, NOHOOK, NOPARENTID, &amp;quot;&amp;quot; /* old: TXT_Frame */,
{
#if defined (MSVERSION) &amp;amp;&amp;amp; (MSVERSION &amp;gt;= 0x550)
{{0, 0, 0, 0}, ToolBox, ICONCMDFRAMEID_DialogDemo, ON, 0, &amp;quot;&amp;quot;, &amp;quot;&amp;quot;},
#else
{{0, 0, 0, 0}, IconCmdFrame, ICONCMDFRAMEID_DialogDemo, ON, 0, &amp;quot;&amp;quot;, &amp;quot;&amp;quot;},
#endif
}
    };

/*----------------------------------------------------------------------+
|                                                                       |
|   Tool Palette Icon Command Frame                                     |
|                                                                       |
+----------------------------------------------------------------------*/
#if defined (MSVERSION) &amp;amp;&amp;amp; (MSVERSION &amp;gt;= 0x550)
DItem_ToolBoxRsc ICONCMDFRAMEID_DialogDemo =
    {
    NOHELP, LHELPCMD, NOHOOK, NOARG, 0, TXT_Frame /* old: &amp;quot;&amp;quot; */,
        {
        {{ 0, 0, 0, 0}, IconCmd,    ICONCMDID_DialogDemo1,  ON,  0,  &amp;quot;&amp;quot;,  &amp;quot;owner=\&amp;quot;DLOGDEMO\&amp;quot;&amp;quot;},
        {{ 0, 0, 0, 0}, ToolBox,    TOOLBOXID_DialogDemo1,  ON,  0,  &amp;quot;&amp;quot;,  &amp;quot;owner=\&amp;quot;DLOGDEMO\&amp;quot;&amp;quot;},
        {{ 0, 0, 0, 0}, IconCmd,    ICONCMDID_DialogDemo2,  ON,  0,  &amp;quot;&amp;quot;,  &amp;quot;owner=\&amp;quot;DLOGDEMO\&amp;quot;&amp;quot;},
        {{ 0, 0, 0, 0}, ToolBox,    TOOLBOXID_DialogDemo2,  ON,  0,  &amp;quot;&amp;quot;,  &amp;quot;owner=\&amp;quot;DLOGDEMO\&amp;quot;&amp;quot;},
        {{ 0, 0, 0, 0}, IconCmd,    ICONCMDID_DialogDemo3,  ON,  0,  &amp;quot;&amp;quot;,  &amp;quot;owner=\&amp;quot;DLOGDEMO\&amp;quot;&amp;quot;},
        {{ 0, 0, 0, 0}, IconCmd,    ICONCMDID_DialogDemo4,  ON,  0,  &amp;quot;&amp;quot;,  &amp;quot;owner=\&amp;quot;DLOGDEMO\&amp;quot;&amp;quot;},
        }
    };
#else
DItem_IconCmdFrameRsc ICONCMDFRAMEID_DialogDemo =
    {
    2, 3, NOHELP, LHELPCMD, &amp;quot;&amp;quot;,
        {
        {IconCmd,           ICONCMDID_DialogDemo1},
        {IconCmdPalette,    ICONCMDPALETTEID_DialogDemo1},
        {IconCmd,           ICONCMDID_DialogDemo2},
        {IconCmdPalette,    ICONCMDPALETTEID_DialogDemo2},
        {IconCmd,           ICONCMDID_DialogDemo3},
        {IconCmd,           ICONCMDID_DialogDemo4},
        }
    };
#endif&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/343173/03_2D00_12_2D00_2018-13_2D00_00_2D00_57.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/343173/03_2D00_12_2D00_2018-14_2D00_46_2D00_24.png" /&gt;&lt;/p&gt;
&lt;p&gt;I hope this information is helpful for the community an Bentley too.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Tom&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>[CONNECT U10 MDL] mdlBspline_extractCurve() is missing</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/170576/connect-u10-mdl-mdlbspline_extractcurve-is-missing</link><pubDate>Thu, 08 Nov 2018 10:49:08 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:d06dad65-3b0f-4da6-ad20-b2d047039693</guid><dc:creator>Tom Torell</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;actually I&amp;#39;m migrating a V8i-MDL to Connect.&lt;br /&gt;&lt;br /&gt;Linking my MDL App with mdlbltin.lib, results in a LNK2019 error, Symbol &amp;quot;__imp_mdlBspline_extractCurve&amp;quot; is missing.&lt;br /&gt;&lt;br /&gt;This function is contained in msbspline.fdf, so compiling works fine, but mdlBspline_extractCurve() seems not to be compiled into Microstation. It is missing in the ustation.dll, when I open this file with the Visual Studio Dependency Walker.&lt;br /&gt;&lt;br /&gt;I have to stroke a Bspline-Curve contained in an element descriptor. In my V8i-MDL I did this calling mdlBspline_extractCurve() first, filling in a MSBsplineCurve structure, and then call mdlBspline_evaluateCurve() to stroke the curve.&lt;br /&gt;&lt;br /&gt;How is this task solved on Connect?&lt;/p&gt;
&lt;p&gt;Tom&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>Thu, 08 Nov 2018 01:30:59 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:daf27703-ba1c-409b-8fc8-e4b0f6f79aee</guid><dc:creator /><description>Ask a question in a forum.</description></item><item><title>Ask A Question II</title><link>https://communities.bentley.com/achievements/cd3cd235-25c1-476e-bb88-33a5705ca45a</link><pubDate>Thu, 08 Nov 2018 10:49:08 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:fc4e9032-112f-48aa-b708-e980d1c8ab4a</guid><dc:creator /><description>Ask 10 questions in a forum.</description></item><item><title>Automated Transverse features</title><link>https://communities.bentley.com/products/road___site_design/f/geopak-inroads-mx-openroads-forum/51475/automated-transverse-features</link><pubDate>Thu, 29 Jan 2015 19:33:42 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:43c46ec7-91c6-49dd-9abd-18230718789a</guid><dc:creator>Lars Karlsson</dc:creator><description>How can I create &amp;quot;batter ticks&amp;quot; (slope tick marks) in IR? I've seen other Civil software doing this automatically.&lt;br /&gt;
With&amp;nbsp;IR Generate Transverse Features command it takes me a whole day to do it in my current project (30 km).&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>[V8i SS3 MDL] Setting the cursor position in Microstation with MDL</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/97165/v8i-ss3-mdl-setting-the-cursor-position-in-microstation-with-mdl</link><pubDate>Thu, 15 May 2014 15:17:04 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:2e159103-b813-4967-a5e1-ac9ee35e3119</guid><dc:creator>Tom Torell</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;does anyone have an idea, how to SET the cursor position in Microstation via. MDL? I can receive the position with mdlSystem_getCursorPosition().&lt;/p&gt;
&lt;p&gt;I want to control the cursor position in a scenario, where the graphical input is coming from a different source as a Microstation window (like a digitizing tablet). Actually I paint a transient element as a &amp;quot;pseudo cursor&amp;quot;, but this is not satisfying to the user. I must have control over the real Microstation cursor, while the user is placing a linestring and this primitive command is in dynamic view.&lt;/p&gt;
&lt;p&gt;Thank you in advance&lt;br /&gt;Tom&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>