<?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>Ethan Yuan's Communities Activities</title><link>https://communities.bentley.com/members/876972ea_2d00_1f87_2d00_46bc_2d00_b08e_2d00_db81398446b8</link><description>Recent activity for people in Ethan Yuan's community</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>C# 关于接口中ElementGraphicsProcessor，ElementGraphicsOutput</title><link>https://communities.bentley.com/communities/other_communities/chinafirst/f/microstation-projectwise/248136/c-elementgraphicsprocessor-elementgraphicsoutput</link><pubDate>Wed, 26 Jul 2023 02:21:06 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:7e6f0c19-7029-4c74-b547-671d51a04eb4</guid><dc:creator>Ethan Yuan</dc:creator><description>&lt;p&gt;看到以前有帖子询问如果遍历drawing模型中的所有元素，是通过C++中的类似接口实现的，我看到C#中有类似的接口ElementGraphicsProcessor，ElementGraphicsOutput，通过这两个类可以实现遍历绘图中元素的需求吗。如果可以能给个具体用法或者例子吗&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>C#有类似于C++提供的那样遍历图纸(Sheet Model)的接口吗?</title><link>https://communities.bentley.com/communities/other_communities/chinafirst/f/microstation-projectwise/244385/c-c-sheet-model</link><pubDate>Wed, 19 Apr 2023 11:23:02 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:1371aa0b-cde6-4274-849d-5fa0fde73f26</guid><dc:creator>宁小雨</dc:creator><description>&lt;p&gt;C#有类似于C++提供的那样遍历图纸(Sheet Model)的接口吗?, 类似于郭老师提供的C++方法&lt;br /&gt;&lt;a href="https://communities.bentley.com/communities/other_communities/bdn_other_communities/b/bdn-blog/posts/sheet-model"&gt;communities.bentley.com/.../sheet-model&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>[MS C#] 关于GetAllRelationshipInstances方法的用法</title><link>https://communities.bentley.com/communities/other_communities/chinafirst/f/microstation-projectwise/243151/ms-c-getallrelationshipinstances</link><pubDate>Tue, 21 Mar 2023 05:58:42 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:fd243c27-ac21-44f8-9d77-971880a8fb68</guid><dc:creator>Ethan Yuan</dc:creator><description>&lt;p&gt;我得到一个IECInstance集合，然后我想遍历看看哪个有Relationship，调用 DgnUtilities.GetAllRelationshipInstances(instance)时发现没有relationship的并不是返回null或者空集合，而是直接造成了软件崩溃，这是什么原因，怎样才是正确方式呢？捕获异常也不行&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>请问一下，我想在opm中根据选中的管线获取管线上的支吊架如何实现呢？</title><link>https://communities.bentley.com/communities/other_communities/chinafirst/f/microstation-projectwise/242523/opm</link><pubDate>Tue, 07 Mar 2023 05:06:10 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:11bc6e2e-b4ad-4594-8127-a1198cda89f4</guid><dc:creator>Ethan Yuan</dc:creator><description>&lt;p&gt;如题，我通过交互工具选择了指定的管线，然后想获取管线上的支吊架进行标注，不知道如何获取，请帮忙。&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>[MS C#] 关于ScanCriteria的使用问题</title><link>https://communities.bentley.com/communities/other_communities/chinafirst/f/microstation-projectwise/242650/ms-c-scancriteria</link><pubDate>Thu, 09 Mar 2023 01:17:42 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:55814902-c6f1-474d-867f-89cd9367b58f</guid><dc:creator>Ethan Yuan</dc:creator><description>&lt;p&gt;我想请问一下，我写了个方法，想得到一个范围内的元素，&amp;nbsp;&lt;/p&gt;
&lt;p&gt;public static void GetElementsByRange(DgnModelRef refmodel, DRange3d range, ScanDelegate callback)&lt;br /&gt; {&lt;br /&gt; ScanCriteria scan = new ScanCriteria();&lt;br /&gt; scan.SetModelRef(refmodel);&lt;br /&gt; //scan.SetModelSections(DgnModelSections.GraphicElements);&lt;br /&gt; ScanRange scanRange = new ScanRange((long)range.Low.X, (long)range.Low.Y, (long)range.Low.Z, (long)range.High.X, (long)range.High.Y, (long)range.High.Z);&lt;br /&gt; scan.SetRangeTest(scanRange);&lt;br /&gt; StatusInt status= scan.Scan(callback);&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;然后回调并没有被执行，是C# 里面有问题吗？&lt;br /&gt;status我得到的是10，没有找到具体含义&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>