<?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>haiou.wang's Communities Activities</title><link>https://communities.bentley.com/members/a8e61e50_2d00_9df9_2d00_4a96_2d00_b5b8_2d00_7e958d81a206</link><description>Recent activity for people in haiou.wang's community</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>[PW]aaApi_FreeDocument的使用</title><link>https://communities.bentley.com/communities/other_communities/chinafirst/f/microstation-projectwise/239727/pw-aaapi_freedocument</link><pubDate>Tue, 20 Dec 2022 02:33:23 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:49d71e94-fbc7-4b15-a3d4-c4e1ddbd8111</guid><dc:creator>lai xingguang</dc:creator><description>&lt;p&gt;请问各位老师，现在情况是这样的，用户a在电脑A上检出了文档Q，后面用户a转到电脑B进行再次进行检出文档Q，这个时候我判断并以用户a的权限调用aaApi_FreeDocument这个接口报错：Document is not checked out to this node. You cannot check in or free documents that are checked out to another node.。&lt;/p&gt;
&lt;p&gt;这个时候这个提示是没问题的，不过我直接登录用户a的账号，在客户端的对应的文档Q上直接右键进行Free操作是可以成功的，我想问下有没有接口可以强制Free的，我了解到强制Free应该只有文档的拥有者或者管理员才有权限操作，现在我用文档Q的拥有者a直接调用&lt;span&gt;aaApi_FreeDocument接口提示报错，是不是直接在客户端操作的那个接口和这个是不一样的，还是说做了什么别的操作，求解答。&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Create document version for document already checked-out</title><link>https://communities.bentley.com/products/programming/projectwise_programming/f/projectwise-programming---forum/218250/create-document-version-for-document-already-checked-out</link><pubDate>Tue, 17 Aug 2021 13:36:58 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:887dd49b-9e07-46d2-bc19-d8eece0b4a3b</guid><dc:creator>Kevin Cox</dc:creator><description>&lt;p&gt;Is there a function to create a new version of a document on check-in?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>【PW C++】长时间连续运行会话问题</title><link>https://communities.bentley.com/communities/other_communities/chinafirst/f/microstation-projectwise/215047/pw-c</link><pubDate>Wed, 09 Jun 2021 00:50:35 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:c2219d57-4562-4596-96e0-a2ab00ca428c</guid><dc:creator>qingsong.chen</dc:creator><description>&lt;p&gt;我们编制了一个服务用来操作PW，该服务长时间运行后（十几个小时）开始报错（执行普通SQL语句aaApi_SqlSelect，SQL语句没有问题，会循环执行），错误信息为：Database communication error，接着再报：Datasource connection terminated。但这个时候调用aaApi_IsConnectionLost()返回的又是false,再调用aaApi_GetCurrentSession获取的会话ID跟登录成功的也一样，但执行SQL语句就依次报上面提到的两个错误。后面通过aaApi_LogoutByHandle退出登录后，再调用aaApi_Login也登录不起，报的错误信息：&lt;/p&gt;
&lt;p&gt;错误信息:Cannot login to the datasource&lt;br /&gt;详细信息:Failed to connect to the remote server application.&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>Sample C++ code to disable most menu commands using a MRR file</title><link>https://communities.bentley.com/products/programming/projectwise_programming/f/projectwise-programming---forum/213234/sample-c-code-to-disable-most-menu-commands-using-a-mrr-file</link><pubDate>Wed, 28 Apr 2021 21:31:35 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:a3e99c3a-d320-46e7-b311-32517fa651a9</guid><dc:creator>Dan Williams</dc:creator><description>&lt;p&gt;I teach this technique in the ProjectWise SDK training course, but enough users have asked me for an &amp;quot;easy&amp;quot; way to disable one or more menu commands so that users cannot use them.&lt;/p&gt;
&lt;p&gt;I created a sample where you can disable most of the menu commands that you see in ProjectWise Explorer.&amp;nbsp; Note that menus added by other &amp;quot;Custom Modules&amp;quot; that use the PW SDK API functions for menus, would have to be modified using those same API functions.&lt;/p&gt;
&lt;p&gt;For a list of available menu items, take a look at the ProjectWise SDK help and you will find them under &amp;quot;Menu Structures -. &amp;lt;menu type&amp;gt; IDs&amp;quot;:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/342995/MenuIds.png" /&gt;&lt;/p&gt;
&lt;p&gt;Note that the &amp;quot;name&amp;quot; of the menu id isn&amp;#39;t always obvious.&amp;nbsp; For example, in my sample code, I am disabling the Document Menu Item &amp;quot;Send To -&amp;gt; Mail Recipient...&amp;quot;, which as a menu id of&amp;nbsp;IDMD_SEND_MAIL.&lt;/p&gt;
&lt;p&gt;Also note that the menu command if it is disabled with a state function, is never actually called because the user cannot select it from the menu.&amp;nbsp; HOWEVER, some menu commands can be executed by some other method.&amp;nbsp; For example the Document Delete menu item can be executed by pressing the &amp;quot;Del&amp;quot; key on your keyboard.&amp;nbsp; This means that to disable the actual menu command behind the menu item, you need to replace that action with &amp;quot;nothing&amp;quot;.&amp;nbsp; So, that is the reason for defining a function for the &amp;quot;Function Name:&amp;quot; box in the .MRR file.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/342995/MrrFile.png" /&gt;&lt;/p&gt;
&lt;p&gt;Also make note that the function that you call for each &amp;quot;Command Type&amp;quot; has a different function prototype, so take a look at the documentation for MRR files:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/342995/2570.MRRDocumentation.png" /&gt;&lt;/p&gt;
&lt;p&gt;I created my Custom Module as a MFC DLL so you will need to make sure that those DLLs are on your target machines, or you can use my source code with a &amp;quot;Win32&amp;quot; DLL project.&lt;/p&gt;
&lt;p&gt;I also put the Exercises for the part of the PW SDK training that includes how to disable a menu command as well as other things you can do with a MRR file up on my GitHub site.&lt;/p&gt;
&lt;p&gt;You can get the sample project here:&amp;nbsp;&lt;a href="https://github.com/DanWilliamsAtBentleyDotCom/Sample-DisableMenuCmds" rel="noopener noreferrer" target="_blank"&gt;Sample-DisableMenuCmds&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Hope this helps a few folks!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>PWCE是否取消了web server</title><link>https://communities.bentley.com/communities/other_communities/chinafirst/f/projectwise-eb/176113/pwce-web-server</link><pubDate>Wed, 06 Mar 2019 02:33:43 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:be73fe90-c303-44d3-97fb-1882cbe7d274</guid><dc:creator>Mars.Z</dc:creator><description>&lt;p&gt;在CE server安装包里没有找到web server，多了web service gateway及plugin。 原有的webserver相关的功能是否集成到其他程序里，还是说为了推云服务砍掉了？请老师解惑&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/343509/pastedimage1551839384124v1.png" alt=" " /&gt;&amp;nbsp; &amp;nbsp;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/343509/pastedimage1551839405147v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>[PW C++] 请问，如何根据PW文件路径获取文件ID或GUID？</title><link>https://communities.bentley.com/communities/other_communities/chinafirst/f/microstation-projectwise/204475/pw-c-pw-id-guid</link><pubDate>Wed, 14 Oct 2020 06:08:48 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:fbbaba76-73e5-4cd8-883f-b44045ac2aed</guid><dc:creator>明昊 刘</dc:creator><description>&lt;p&gt;如何利用PW中文件地址：pw:\jy-pwsrv2.cjxjy.com:jypwdb1\Documents\数字化\2020年Microstation开发\无标题，&lt;!--mce:protected %3C%21--mce%3Aprotected%20%253C%2521--StartFragment%2520--%253E--%3E--&gt;&lt;!--mce:protected %3C%21--mce%3Aprotected%20%253C%2521--StartFragment%2520--%253E--%3E--&gt;&lt;!--mce:protected %3C%21--mce%3Aprotected%20%253C%2521--StartFragment%2520--%253E--%3E--&gt;&lt;/p&gt;
&lt;p&gt;获取该文件的ID或者GUID；&lt;/p&gt;
&lt;p&gt;在SDK中找到以下函数是否可以解决该问题：&lt;/p&gt;
&lt;p&gt;1.&amp;nbsp;aaApi_SelectDocumentDataBufferByFilePath&amp;nbsp;;&lt;/p&gt;
&lt;p&gt;2.&amp;nbsp;aaApi_GetGuidsFromFileName;&lt;/p&gt;
&lt;div class="contents"&gt;
&lt;div class="memitem"&gt;
&lt;div class="memproto"&gt;3.&amp;nbsp;aaApi_GetDocGuidsFromFileName .&lt;/div&gt;
&lt;div class="memproto"&gt;&lt;/div&gt;
&lt;div class="memproto"&gt;如果以上函数可以解决，是否可以提供使用方法？&lt;/div&gt;
&lt;/div&gt;
&lt;/div&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>Mon, 11 Mar 2019 06:53:01 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:39ebbf08-c5be-49e3-9cbd-2fe164851074</guid><dc:creator /><description>Answer a question that is verified as helpful or correct.</description></item><item><title>OPM打开PW上DGN文件出现问题</title><link>https://communities.bentley.com/communities/other_communities/chinafirst/f/projectwise-eb/175160/opm-pw-dgn</link><pubDate>Fri, 15 Feb 2019 00:30:38 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:979f2fcf-59de-4e38-9042-20f46e1fe74d</guid><dc:creator>Zhao Yongxuan 赵永轩</dc:creator><description>&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/343509/pastedimage1550190608205v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Pw 创建文档时 58960 错误</title><link>https://communities.bentley.com/communities/other_communities/chinafirst/f/projectwise-eb/148583/pw-58960</link><pubDate>Thu, 22 Mar 2018 00:38:50 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:4e366316-cbe2-4675-899f-cf3bea202c2e</guid><dc:creator>zhouweilab</dc:creator><description>&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/343509/pastedimage1521679108527v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>imodel Transformer</title><link>https://communities.bentley.com/communities/other_communities/chinafirst/f/projectwise-eb/146106/imodel-transformer</link><pubDate>Thu, 25 Jan 2018 02:34:27 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:f24703ea-9099-4fe5-8070-318c4bd26962</guid><dc:creator>jack 张</dc:creator><description>&lt;p&gt;各位老师好，我在使用imodel Transformer给imodel模型更新属性时，没有办法进行准确的更新对应的属性信息。excel是通过&lt;span&gt;imodel Transformer&lt;/span&gt;用原imodel文件导出的，然后在此excel文件上进行更新属性信息，并且转换出来的imodel文件里的属性信息是更新过的，但是将新imodel与原imodel进行joinitems时相应的属性不会进行更新。请问有什么好的解决方法吗？&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>ProjectWise Publishing Server_文档发布服务器</title><link>https://communities.bentley.com/communities/other_communities/chinafirst/w/chinawiki/28436/projectwise-publishing-server</link><pubDate>Wed, 18 May 2016 07:08:49 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:0c38dd32-6dc2-4ea4-af24-e211f7b0f205</guid><dc:creator>haiou.wang</dc:creator><description>&lt;p&gt;ProjectWise Publishing Server_文档发布服务器&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>ProjectWise InterPlot Server_打印服务器</title><link>https://communities.bentley.com/communities/other_communities/chinafirst/w/chinawiki/28438/projectwise-interplot-server</link><pubDate>Wed, 18 May 2016 07:11:49 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:037848ca-5792-4396-8ee4-a41ef09c2e00</guid><dc:creator>haiou.wang</dc:creator><description>&lt;p&gt;ProjectWise InterPlot Server_打印服务器&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>ProjectWise Gateway Service_网关服务</title><link>https://communities.bentley.com/communities/other_communities/chinafirst/w/chinawiki/28433/projectwise-gateway-service</link><pubDate>Wed, 18 May 2016 07:04:29 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:a489311a-4939-43e2-a956-64ac092e3594</guid><dc:creator>haiou.wang</dc:creator><description>&lt;p&gt;ProjectWise Gateway Service_网关服务&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>ProjectWise Caching Server_缓存服务器</title><link>https://communities.bentley.com/communities/other_communities/chinafirst/w/chinawiki/28432/projectwise-caching-server</link><pubDate>Wed, 18 May 2016 07:03:05 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:84617112-c560-4827-9553-b1cc52207ef0</guid><dc:creator>haiou.wang</dc:creator><description>&lt;p&gt;ProjectWise Caching Server_缓存服务器&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>