<?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>Markus Hannweber's Activities</title><link>https://communities.bentley.com/members/1371d332_2d00_8b51_2d00_4c83_2d00_a848_2d00_6077173ec25b</link><description>Markus Hannweber's recent activity</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>How to insert a parametric cell with C# in Connect edition?</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/148795/how-to-insert-a-parametric-cell-with-c-in-connect-edition</link><pubDate>Tue, 27 Mar 2018 07:19:54 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:2e597889-bfbc-49b5-a0b5-e18a66e3983d</guid><dc:creator>Markus Hannweber</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;i try to insert a paramtric cell in my model.&lt;/p&gt;
&lt;p&gt;I have an attached cell lib nd I can find the cell via the name in the lib and get a ParametricCellDefinitionElement object.&lt;/p&gt;
&lt;p&gt;I can iterate over the variables of the parametric cell, and with a IECPropertyValue objct I can the the needed values for the variables.&lt;/p&gt;
&lt;p&gt;But I didn&amp;#39;t find a way to insert the parametric block into the model.&lt;/p&gt;
&lt;p&gt;CreateCellElementXX and CreateSharedCellElementXX only create a normal cells. Any command I missed? Or can I change the cell to a paramtric cell and set the variables?&lt;/p&gt;
&lt;p&gt;Or do i have to use something like:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; App.CadInputQueue.SendCommand(&amp;quot;PLACE CELL&amp;quot;, true);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; App.CadInputQueue.SendKeyin(parametricCellData.ParametricCellName);&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Point3d dataPoint;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dataPoint.X = parametricCellData.PtInsert.X;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dataPoint.Y = parametricCellData.PtInsert.Y;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dataPoint.Z = parametricCellData.PtInsert.Z;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; App.CadInputQueue.SendDataPoint(ref dataPoint, 1, 0);&lt;/p&gt;
&lt;p&gt;Thanks for help&lt;/p&gt;
&lt;p&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Microstation connect ElementChangedEvent ChangeTrackKind</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/154400/microstation-connect-elementchangedevent-changetrackkind</link><pubDate>Wed, 16 May 2018 14:40:10 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:3f3e40c2-7354-49c9-8baf-57180d05d654</guid><dc:creator>Markus Hannweber</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I overloaded the ElementChangedEvent event and get a ChangeTrackKind value in eventargs.Change&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Delete = 1,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Add = 2,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Modify = 3,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ModifyFence = 5,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mark = 7,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ModelAdd = 9,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ModelDelete = 10,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AddXAttribute = 11,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DeleteXAttribute = 12,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ModifyXAttribute = 13,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ReplaceXAttribute = 14&lt;/p&gt;
&lt;p&gt;But I get after moving an object (modify = 3) always anaddition event with a value 17. Anyone an idea what this means?&lt;/p&gt;
&lt;p&gt;Thanks for help&lt;/p&gt;
&lt;p&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>How to scan forparametric cells?</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/148923/how-to-scan-forparametric-cells</link><pubDate>Thu, 29 Mar 2018 08:37:44 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:acacb78e-940f-47f0-a46e-40f179a78683</guid><dc:creator>Markus Hannweber</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;To scan a drawing for all cells I use:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;ElementScanCriteria scanCriteria = new ElementScanCriteriaClass();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; scanCriteria.ExcludeAllTypes();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; scanCriteria.IncludeType(MsdElementType.CellHeader);&lt;/p&gt;
&lt;p&gt;but this don&amp;#39;t find any parametric cells and I didn&amp;#39;t find any other includedType() which can be used to find parametric cells?&lt;/p&gt;
&lt;p&gt;Any ideas?&lt;/p&gt;
&lt;p&gt;Thanks for help&lt;/p&gt;
&lt;p&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>different Element classes</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/146890/different-element-classes</link><pubDate>Mon, 12 Feb 2018 07:13:24 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:6ec3ed08-8c56-4c5c-947d-fa7abba7e100</guid><dc:creator>Markus Hannweber</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;with the function&lt;/p&gt;
&lt;p&gt;Element.GetFromElementRef &lt;/p&gt;
&lt;p&gt;I get a&lt;/p&gt;
&lt;p&gt;Bentley.DgnPlatformNET.Elements.Element object&lt;/p&gt;
&lt;p&gt;then I need to read the XData of the object. Till now i used&lt;/p&gt;
&lt;p&gt;element.GetXData1(AppName);&lt;/p&gt;
&lt;p&gt;but this functions need a&lt;/p&gt;
&lt;p&gt;Bentley.Interop.MicroStationDGN.Element&lt;/p&gt;
&lt;p&gt;So my question is, how to come from one the the other? And why there are two differnet Element classes without an esy way to convert.&lt;/p&gt;
&lt;p&gt;E.g. a contructor that uses the other class&lt;/p&gt;
&lt;p&gt;Greetings&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Markus&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>Mon, 12 Feb 2018 06:03:42 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:bd8391ba-01e3-450f-ae84-996213ff2276</guid><dc:creator /><description>Ask a question in a forum.</description></item></channel></rss>