<?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>Data point to lie on the grid cross hair or dot</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/bdn-vba/98050/data-point-to-lie-on-the-grid-cross-hair-or-dot</link><description>Dear All, 
 How to snap the DataPoint to GridPoint? I tried with the code snippet given below. But it doesn&amp;#39;t work. Is there anyother method/suggestion? 
 ActiveSettings.GridLockEnabled = True 
 CadInputQueue.SendKeyin &amp;quot;place smartline&amp;quot; 
 CadInputQueue</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Data point to lie on the grid cross hair or dot</title><link>https://communities.bentley.com/thread/287901?ContentTypeID=1</link><pubDate>Wed, 18 Jun 2014 05:33:24 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:55f33105-e81f-4ff8-9fd0-82e62ee00d20</guid><dc:creator>Jan Šlegr</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;no, it works as expected. SendDataPoint method is similar to xy= key-in and they don&amp;#39;t respect locks settings and allow to place data point at exact coordinates.&lt;/p&gt;
&lt;p&gt;If you create own standard placement class implementing IPrimitiveCommandEvents, it will respect grid and other locks automatically. You can try (copy and paste) Line Element Creation Command example from VBA help.&lt;/p&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>