<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Custom entity osnap points doesn't work in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/custom-entity-osnap-points-doesn-t-work/m-p/6903598#M8673</link>
    <description>&lt;P&gt;Well, it worked. The function signature generated by the ArxWizard is wrong, even in the docs the signature is like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;virtual Acad::ErrorStatus  
subGetOsnapPoints( AcDb::OsnapMode osnapMode, 
&lt;STRONG&gt;int gsSelectionMark&lt;/STRONG&gt;, &lt;BR /&gt;const AcGePoint3d&amp;amp; pickPoint, 
const AcGePoint3d&amp;amp; lastPoint, 
const AcGeMatrix3d&amp;amp; viewXform, 
AcGePoint3dArray&amp;amp; snapPoints, 
AcDbIntArray&amp;amp; geomIds) const;&lt;/PRE&gt;&lt;P&gt;I'm sorry for the stupid question. Thank you&amp;nbsp;Alexander Rivilis.&lt;/P&gt;</description>
    <pubDate>Sat, 25 Feb 2017 20:17:07 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-02-25T20:17:07Z</dc:date>
    <item>
      <title>Custom entity osnap points doesn't work</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/custom-entity-osnap-points-doesn-t-work/m-p/6903519#M8671</link>
      <description>&lt;P&gt;Hello, how can i define custom snap points for my custom entity? I'm implementing the "subGetOsnapPoints" method but the snap points doesn't appears when the mouse is closer, here is the implementation:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Acad::ErrorStatus Bolanum::subGetOsnapPoints (
	AcDb::OsnapMode osnapMode,
	int gsSelectionMark,
	const AcGePoint3d &amp;amp;pickPoint,
	const AcGePoint3d &amp;amp;lastPoint,
	const AcGeMatrix3d &amp;amp;viewXform,
	AcGePoint3dArray &amp;amp;snapPoints,
	AcDbIntArray &amp;amp;geomIds) const
{
	assertReadEnabled () ;

	switch(osnapMode)
	{
		case AcDb::kOsModeEnd :
				snapPoints.append(mLinePosition);
				snapPoints.append(getCircleBorderPoint());
			break;
	}

	return Acad::eOk;
}&lt;/PRE&gt;&lt;P&gt;Am i missing or doing something wrong? My entity full source is in the attachments as a lisp file.&lt;/P&gt;&lt;P&gt;I'm using ObjectARX 2012 and VS 2010 SP1. My entity is a ARX not an DBX object.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Feb 2017 19:01:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/custom-entity-osnap-points-doesn-t-work/m-p/6903519#M8671</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-25T19:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Custom entity osnap points doesn't work</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/custom-entity-osnap-points-doesn-t-work/m-p/6903543#M8672</link>
      <description>&lt;P&gt;Declaration of subGetOsnapPoints is:&lt;/P&gt;
&lt;PRE&gt;    virtual Acad::ErrorStatus   subGetOsnapPoints(
                                    AcDb::OsnapMode     osnapMode,
                                    &lt;STRONG&gt;Adesk::GsMarker     gsSelectionMark,&lt;/STRONG&gt;
                                    const AcGePoint3d&amp;amp;  pickPoint,
                                    const AcGePoint3d&amp;amp;  lastPoint,
                                    const AcGeMatrix3d&amp;amp; viewXform,
                                    AcGePoint3dArray&amp;amp;   snapPoints,
                                    AcDbIntArray &amp;amp;   geomIds) const;
&lt;/PRE&gt;
&lt;P&gt;So you have to replace:&lt;/P&gt;
&lt;PRE&gt;int gsSelectionMark,&lt;/PRE&gt;
&lt;P&gt;with&lt;/P&gt;
&lt;PRE&gt;Adesk::GsMarker     gsSelectionMark&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Feb 2017 19:39:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/custom-entity-osnap-points-doesn-t-work/m-p/6903543#M8672</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2017-02-25T19:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Custom entity osnap points doesn't work</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/custom-entity-osnap-points-doesn-t-work/m-p/6903598#M8673</link>
      <description>&lt;P&gt;Well, it worked. The function signature generated by the ArxWizard is wrong, even in the docs the signature is like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;virtual Acad::ErrorStatus  
subGetOsnapPoints( AcDb::OsnapMode osnapMode, 
&lt;STRONG&gt;int gsSelectionMark&lt;/STRONG&gt;, &lt;BR /&gt;const AcGePoint3d&amp;amp; pickPoint, 
const AcGePoint3d&amp;amp; lastPoint, 
const AcGeMatrix3d&amp;amp; viewXform, 
AcGePoint3dArray&amp;amp; snapPoints, 
AcDbIntArray&amp;amp; geomIds) const;&lt;/PRE&gt;&lt;P&gt;I'm sorry for the stupid question. Thank you&amp;nbsp;Alexander Rivilis.&lt;/P&gt;</description>
      <pubDate>Sat, 25 Feb 2017 20:17:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/custom-entity-osnap-points-doesn-t-work/m-p/6903598#M8673</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-25T20:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Custom entity osnap points doesn't work</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/custom-entity-osnap-points-doesn-t-work/m-p/6903635#M8674</link>
      <description>&lt;P&gt;Some years ago I've informed Autodesk DevHelp about this. Help was corrected in new version:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2017-02-25_22-23-59.png" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/326735i63AE1116A5CE3544/image-size/large?v=v2&amp;amp;px=999" role="button" title="2017-02-25_22-23-59.png" alt="2017-02-25_22-23-59.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;New version of ARXWizard also now corrected. You can change those files yourself:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;C:\Program Files (x86)\Autodesk\ObjectARX Wizards for AutoCAD 2012\ArxWizCustomObject\Templates\1033\object.cpp&lt;/P&gt;
&lt;P&gt;C:\Program Files (x86)\Autodesk\ObjectARX Wizards for AutoCAD 2012\ArxWizCustomObject\Templates\1033\object.h&lt;/P&gt;</description>
      <pubDate>Sat, 25 Feb 2017 20:36:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/custom-entity-osnap-points-doesn-t-work/m-p/6903635#M8674</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2017-02-25T20:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: Custom entity osnap points doesn't work</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/custom-entity-osnap-points-doesn-t-work/m-p/6903653#M8675</link>
      <description>&lt;P&gt;I'm gonna fix it, thanks for the tip.&lt;/P&gt;</description>
      <pubDate>Sat, 25 Feb 2017 20:46:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/custom-entity-osnap-points-doesn-t-work/m-p/6903653#M8675</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-25T20:46:34Z</dc:date>
    </item>
  </channel>
</rss>

