<?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>How to use codes to open the AcccuDraw</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/136377/how-to-use-codes-to-open-the-acccudraw</link><description>I inherited the class of DgnPrimitiveTool , my aim is to use this tool class to draw a line, 
 in the mouse click event - _OnDataButton , write the codes. 
 first: how to open the AccuDraw use codes , when I draw the line , both before and after I click</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to use codes to open the AcccuDraw</title><link>https://communities.bentley.com/thread/412708?ContentTypeID=1</link><pubDate>Tue, 16 May 2017 11:35:03 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:57dd8b6f-374f-45f8-b2af-d27b2166abfb</guid><dc:creator>George P</dc:creator><description>tank you ,these functions:&lt;br /&gt;
 mdlAccuDraw_setEnabledState(true);	&lt;br /&gt;
&lt;br /&gt;
Dpoint3d    xAxisVec,pt1,pt2;&lt;br /&gt;
double length = mdlVec_computeNormal(&amp;amp;xAxisVec, &amp;amp;pt2, &amp;amp;pt1);&lt;br /&gt;
mdlState_setAccudrawContext(DgnPlatform::ACCUDRAW_SetNormal, &amp;amp;pt1, NULL, NULL, NULL, &amp;amp;xAxisVec);&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use codes to open the AcccuDraw</title><link>https://communities.bentley.com/thread/412696?ContentTypeID=1</link><pubDate>Tue, 16 May 2017 10:09:03 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:85861efa-407b-4d35-b4a7-e926ae7f8d47</guid><dc:creator>Jon Summers</dc:creator><description>&lt;p&gt;[quote user=&amp;quot;George Peng&amp;quot;]I want to know how to use codes to open AccuDraw[/quote]&lt;/p&gt;
&lt;p&gt;There is an &lt;em&gt;AccuDraw&lt;/em&gt; example delivered with the MicroStation CONNECT SDK...&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:courier new,courier;"&gt;..\SDK\examples\Elements\AccuDrawDemo&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;[quote user=&amp;quot;George Peng&amp;quot;]Development language is MDL[/quote]&lt;/p&gt;
&lt;p&gt;The MicroStation CONNECT SDK provides the MicroStationAPI C++ interface.&amp;nbsp; While some MDL functions remain, the API is mostly C++ classes.&lt;/p&gt;
&lt;p&gt;For example, if you search MicroStationAPI help you will find classes for both &lt;em&gt;AccuDraw&lt;/em&gt; and &lt;em&gt;AccuSnap&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use codes to open the AcccuDraw</title><link>https://communities.bentley.com/thread/412695?ContentTypeID=1</link><pubDate>Tue, 16 May 2017 10:06:46 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:bfa7815e-6583-49b6-951b-8f14192ae794</guid><dc:creator>George P</dc:creator><description>Thank you,and please to know you ,indeed.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use codes to open the AcccuDraw</title><link>https://communities.bentley.com/thread/412691?ContentTypeID=1</link><pubDate>Tue, 16 May 2017 09:45:00 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:ba54e2c1-75a6-4e14-9db2-8f7930b2dd91</guid><dc:creator>George P</dc:creator><description>Development of language is MDL ,Microstation type is CE,  I want to know how to use codes to open AccuDraw during a   draw line operate&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use codes to open the AcccuDraw</title><link>https://communities.bentley.com/thread/412688?ContentTypeID=1</link><pubDate>Tue, 16 May 2017 09:00:36 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:dfd29632-0718-4966-9013-5f2b970d4072</guid><dc:creator>Jan Šlegr</dc:creator><description>&lt;p&gt;Hi George,&lt;/p&gt;
&lt;p&gt;please read and follow &lt;a href="/products/programming/microstation_programming/f/343173/t/77384" target="_blank"&gt;MicroStation Programming forum best practices&lt;/a&gt;. Without information mentioned there it&amp;#39;s hard to provide an answer:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;What MicroStation do you use? Please state exact build number (e.g. to only mention V8i is not enough in many cases).&lt;/li&gt;
&lt;li&gt;What language do you use? From mentioned&amp;nbsp;DgnPrimitiveTool we can deduce it&amp;#39;s probably C++, but you only know it for sure.&lt;/li&gt;
&lt;li&gt;Don&amp;#39;t ask more different questions in one post!&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;With regards,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Jan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>