<?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 strange problem with osnap in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/strange-problem-with-osnap/m-p/1649502#M23573</link>
    <description>hi,&lt;BR /&gt;
in my application the user can rotate some object...I use acedcommand rotate to do this....&lt;BR /&gt;
before this I set to 0 the osnap mode variable whit:&lt;BR /&gt;
&lt;BR /&gt;
int SettaOsnap(int NewOsnap)&lt;BR /&gt;
{&lt;BR /&gt;
	int res;&lt;BR /&gt;
	struct resbuf org_osnap;&lt;BR /&gt;
	res = acedGetVar("OSMODE", &amp;amp;org_osnap);&lt;BR /&gt;
	int oldsnap = org_osnap.resval.rint;&lt;BR /&gt;
	org_osnap.resval.rint = NewOsnap;&lt;BR /&gt;
	res = acedSetVar("OSMODE", &amp;amp;org_osnap);&lt;BR /&gt;
	return oldsnap;&lt;BR /&gt;
}&lt;BR /&gt;
&lt;BR /&gt;
this work fine and I set the push button of osnap disable.&lt;BR /&gt;
But the rotation not work correctly...semm that autocad see some osnap active.&lt;BR /&gt;
Instead, if I turned off the osnap by press the osnap push button in autocad, all work fine.&lt;BR /&gt;
&lt;BR /&gt;
Seem that the problem is the osnap.&lt;BR /&gt;
Is the acedSetVar asyncronous???&lt;BR /&gt;
&lt;BR /&gt;
can anyone help me?&lt;BR /&gt;
thank you very much</description>
    <pubDate>Fri, 19 May 2006 10:39:45 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2006-05-19T10:39:45Z</dc:date>
    <item>
      <title>strange problem with osnap</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/strange-problem-with-osnap/m-p/1649502#M23573</link>
      <description>hi,&lt;BR /&gt;
in my application the user can rotate some object...I use acedcommand rotate to do this....&lt;BR /&gt;
before this I set to 0 the osnap mode variable whit:&lt;BR /&gt;
&lt;BR /&gt;
int SettaOsnap(int NewOsnap)&lt;BR /&gt;
{&lt;BR /&gt;
	int res;&lt;BR /&gt;
	struct resbuf org_osnap;&lt;BR /&gt;
	res = acedGetVar("OSMODE", &amp;amp;org_osnap);&lt;BR /&gt;
	int oldsnap = org_osnap.resval.rint;&lt;BR /&gt;
	org_osnap.resval.rint = NewOsnap;&lt;BR /&gt;
	res = acedSetVar("OSMODE", &amp;amp;org_osnap);&lt;BR /&gt;
	return oldsnap;&lt;BR /&gt;
}&lt;BR /&gt;
&lt;BR /&gt;
this work fine and I set the push button of osnap disable.&lt;BR /&gt;
But the rotation not work correctly...semm that autocad see some osnap active.&lt;BR /&gt;
Instead, if I turned off the osnap by press the osnap push button in autocad, all work fine.&lt;BR /&gt;
&lt;BR /&gt;
Seem that the problem is the osnap.&lt;BR /&gt;
Is the acedSetVar asyncronous???&lt;BR /&gt;
&lt;BR /&gt;
can anyone help me?&lt;BR /&gt;
thank you very much</description>
      <pubDate>Fri, 19 May 2006 10:39:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/strange-problem-with-osnap/m-p/1649502#M23573</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-05-19T10:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: strange problem with osnap</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/strange-problem-with-osnap/m-p/1649503#M23574</link>
      <description>I have found the problem, it was in my code, sorry and thanks</description>
      <pubDate>Fri, 19 May 2006 11:35:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/strange-problem-with-osnap/m-p/1649503#M23574</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-05-19T11:35:56Z</dc:date>
    </item>
  </channel>
</rss>

