<?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/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>[CONNECT C++] Making a Cell an Annotation Cell</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/129566/connect-c-making-a-cell-an-annotation-cell</link><description>In pre-CONNECT, there was an undocumented function one could use to take a non-annotation cell and make it an annotation cell: 
 extern &amp;quot;C&amp;quot; DLLEXPORT	StatusInt mdlCell_setIsAnnotation(MSElementDescrP cellEdP, int isAnnotation);
 
 
 however, this seems</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: [CONNECT C++] Making a Cell an Annotation Cell</title><link>https://communities.bentley.com/thread/522513?ContentTypeID=1</link><pubDate>Fri, 17 May 2019 07:43:23 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:ef956346-df00-4615-afa4-4aed5aa54601</guid><dc:creator>Oto</dc:creator><description>&lt;p&gt;welcome to the club. I have tried multiple times(starting from year 2013) using VBA to achieve correct conversion from normal to annotation cells with no success. Bentley support is of no help either as they are confusing &amp;quot;is Anntotation&amp;quot; property with &amp;quot;Annotation purpose&amp;quot; property and has limited understanding how annotation cells actually works. No wonder that annotation cells are not used much as it causes more issues as resolve and are not &amp;quot;transparent&amp;quot; regarding scales in which each cell is placed. Also even in CONNECT edition highlighting annotation cell it doesn&amp;#39;t show cell name as it does for normal cells.&lt;/p&gt;
&lt;p&gt;Only option seems to deal with XAttributes and reverse engineer how it encodes annotation property and scale in which scale the cell is place. It seems only difference between normal and annotation cell is in XAttributes.&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/343173/pastedimage1558078658011v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [CONNECT C++] Making a Cell an Annotation Cell</title><link>https://communities.bentley.com/thread/522237?ContentTypeID=1</link><pubDate>Thu, 16 May 2019 08:37:56 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:99bf3696-b6db-44a0-bcfb-b9c001685865</guid><dc:creator>Jon Summers</dc:creator><description>&lt;p&gt;Is there an answer to this question?&amp;nbsp; Neither function &lt;code&gt;mdlCell_setIsAnnotation()&lt;/code&gt; nor &lt;code&gt;mdlCell_setAnnotationScale()&lt;/code&gt; appears to be available in CONNECT.&lt;/p&gt;
&lt;h4&gt;&lt;span style="color:seagreen;"&gt;&lt;code&gt;IAnnotationHandler&lt;/code&gt; does not support Normal Cells&lt;/span&gt;&lt;/h4&gt;
[quote userid="3014" url="~/products/programming/microstation_programming/f/microstation-programming---forum/129566/connect-c-making-a-cell-an-annotation-cell"]It also looks like &lt;code&gt;IAnnotationHandler&lt;/code&gt; does not support cells[/quote]
&lt;p&gt;That handler would be the logical way to go, but does not apply to normal cells.&amp;nbsp; Why not?&lt;/p&gt;
&lt;h4&gt;&lt;span style="color:seagreen;"&gt;&lt;code&gt;ICellQuery.IsAnnotation&lt;/code&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;p&gt;&lt;code&gt;ICellQuery.IsAnnotation&lt;/code&gt; tells me whether a cell can be used for annotation (&lt;code&gt;NormalCellHeaderHandler&lt;/code&gt; inherits from &lt;code&gt;ICellQuery&lt;/code&gt;). But where is the method to apply annotation scale?&lt;/p&gt;
&lt;p&gt;To put my question into context, I&amp;#39;m reading a cell from a library&amp;nbsp;&amp;hellip;&lt;/p&gt;
&lt;pre&gt;if (SUCCESS == mdlCell_getElmDscr (&amp;amp;cell, ...)) 
{
  const bool&amp;amp; TakeOwnership { true }; 
  const bool&amp;amp; IsUnmodified  { true }; 
  EditElementHandle header (cell, TakeOwnership, IsUnmodified); 
  &lt;span style="color:seagreen;"&gt;...&lt;/span&gt; 
}
&lt;/pre&gt;
&lt;p&gt;What do I need to do to &lt;code&gt;EditElementHandle header&lt;/code&gt; to turn annotation on?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [CONNECT C++] Making a Cell an Annotation Cell</title><link>https://communities.bentley.com/thread/453550?ContentTypeID=1</link><pubDate>Thu, 29 Mar 2018 09:53:40 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:c8ba8e66-9992-460d-9063-11a69039efe9</guid><dc:creator>Oto</dc:creator><description>&lt;p&gt;The mdlCell_setIsAnnotation(cell-&amp;gt;flags.isAnnotation) name actually is misleading it doesn&amp;#39;t set &amp;quot;&lt;em&gt;Is annotation&lt;/em&gt;&amp;quot; but sets &amp;quot;&lt;em&gt;Annotation Purpose&lt;/em&gt;&amp;quot;(Can be placed as an annotation cell) property for cell. &lt;br /&gt;&lt;br /&gt;And you need to use mdlCell_setAnnotationScale otherwise the cell s not annotation until file is reopened.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>