<?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: AcquirePoint Problem in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/acquirepoint-problem/m-p/1771511#M80320</link>
    <description>Have you tried removing UserInputControls.AcceptMouseUpAsPoint ?&lt;BR /&gt;
&lt;BR /&gt;
That would only make sense if the call to AquirePoint() was&lt;BR /&gt;
issued while the mouse button is currently down, no?&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;LAPISEAST&gt; wrote in message news:5337772@discussion.autodesk.com...&lt;BR /&gt;
when override drawjig::sampler() function, i use the AcquirePoint() to get the point. The problem is that the 3dcoordinate point input from keyboard doesn't works, anyone knows what's wrong?&lt;BR /&gt;
My code snippet list as below:&lt;BR /&gt;
&lt;BR /&gt;
protected override SamplerStatus Sampler(JigPrompts prompts)&lt;BR /&gt;
        {&lt;BR /&gt;
&lt;BR /&gt;
            JigPromptOptions jigOpts = new JigPromptOptions();&lt;BR /&gt;
            jigOpts.UserInputControls = (UserInputControls.Accept3dCoordinates|UserInputControls.AcceptMouseUpAsPoint | UserInputControls.NoZeroResponseAccepted | UserInputControls.NoNegativeResponseAccepted&lt;BR /&gt;
); &lt;BR /&gt;
            jigOpts.Message = "input the point：";&lt;BR /&gt;
            PromptPointResult dres = prompts.AcquirePoint(jigOpts);// just here the keyboard doesn't work&lt;BR /&gt;
            &lt;BR /&gt;
            if (dres.Status == PromptStatus.Cancel)&lt;BR /&gt;
            {&lt;BR /&gt;
                return SamplerStatus.Cancel;&lt;BR /&gt;
            }&lt;BR /&gt;
&lt;BR /&gt;
            if (ToSymbolCreateData(m_CreateData).Position != dres.Value)&lt;BR /&gt;
            {&lt;BR /&gt;
                ToSymbolCreateData(m_CreateData).Position = dres.Value;&lt;BR /&gt;
                return SamplerStatus.OK;&lt;BR /&gt;
            }&lt;BR /&gt;
            else&lt;BR /&gt;
            {&lt;BR /&gt;
                return SamplerStatus.NoChange;&lt;BR /&gt;
            }&lt;BR /&gt;
        }&lt;/LAPISEAST&gt;</description>
    <pubDate>Sat, 23 Sep 2006 01:41:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2006-09-23T01:41:55Z</dc:date>
    <item>
      <title>AcquirePoint Problem</title>
      <link>https://forums.autodesk.com/t5/net-forum/acquirepoint-problem/m-p/1771510#M80319</link>
      <description>when override drawjig::sampler() function, i use the AcquirePoint() to get the point. The problem is that the 3dcoordinate point input from keyboard doesn't works, anyone knows what's wrong?&lt;BR /&gt;
My code snippet list as below:&lt;BR /&gt;
&lt;BR /&gt;
protected override SamplerStatus Sampler(JigPrompts prompts)&lt;BR /&gt;
        {&lt;BR /&gt;
&lt;BR /&gt;
            JigPromptOptions jigOpts = new JigPromptOptions();&lt;BR /&gt;
            jigOpts.UserInputControls = (UserInputControls.Accept3dCoordinates|UserInputControls.AcceptMouseUpAsPoint | UserInputControls.NoZeroResponseAccepted | UserInputControls.NoNegativeResponseAccepted&lt;BR /&gt;
); &lt;BR /&gt;
            jigOpts.Message = "input the point：";&lt;BR /&gt;
            PromptPointResult dres = prompts.AcquirePoint(jigOpts);// just here the keyboard doesn't work&lt;BR /&gt;
            &lt;BR /&gt;
            if (dres.Status == PromptStatus.Cancel)&lt;BR /&gt;
            {&lt;BR /&gt;
                return SamplerStatus.Cancel;&lt;BR /&gt;
            }&lt;BR /&gt;
&lt;BR /&gt;
            if (ToSymbolCreateData(m_CreateData).Position != dres.Value)&lt;BR /&gt;
            {&lt;BR /&gt;
                ToSymbolCreateData(m_CreateData).Position = dres.Value;&lt;BR /&gt;
                return SamplerStatus.OK;&lt;BR /&gt;
            }&lt;BR /&gt;
            else&lt;BR /&gt;
            {&lt;BR /&gt;
                return SamplerStatus.NoChange;&lt;BR /&gt;
            }&lt;BR /&gt;
        }</description>
      <pubDate>Fri, 22 Sep 2006 06:32:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/acquirepoint-problem/m-p/1771510#M80319</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-22T06:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: AcquirePoint Problem</title>
      <link>https://forums.autodesk.com/t5/net-forum/acquirepoint-problem/m-p/1771511#M80320</link>
      <description>Have you tried removing UserInputControls.AcceptMouseUpAsPoint ?&lt;BR /&gt;
&lt;BR /&gt;
That would only make sense if the call to AquirePoint() was&lt;BR /&gt;
issued while the mouse button is currently down, no?&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;LAPISEAST&gt; wrote in message news:5337772@discussion.autodesk.com...&lt;BR /&gt;
when override drawjig::sampler() function, i use the AcquirePoint() to get the point. The problem is that the 3dcoordinate point input from keyboard doesn't works, anyone knows what's wrong?&lt;BR /&gt;
My code snippet list as below:&lt;BR /&gt;
&lt;BR /&gt;
protected override SamplerStatus Sampler(JigPrompts prompts)&lt;BR /&gt;
        {&lt;BR /&gt;
&lt;BR /&gt;
            JigPromptOptions jigOpts = new JigPromptOptions();&lt;BR /&gt;
            jigOpts.UserInputControls = (UserInputControls.Accept3dCoordinates|UserInputControls.AcceptMouseUpAsPoint | UserInputControls.NoZeroResponseAccepted | UserInputControls.NoNegativeResponseAccepted&lt;BR /&gt;
); &lt;BR /&gt;
            jigOpts.Message = "input the point：";&lt;BR /&gt;
            PromptPointResult dres = prompts.AcquirePoint(jigOpts);// just here the keyboard doesn't work&lt;BR /&gt;
            &lt;BR /&gt;
            if (dres.Status == PromptStatus.Cancel)&lt;BR /&gt;
            {&lt;BR /&gt;
                return SamplerStatus.Cancel;&lt;BR /&gt;
            }&lt;BR /&gt;
&lt;BR /&gt;
            if (ToSymbolCreateData(m_CreateData).Position != dres.Value)&lt;BR /&gt;
            {&lt;BR /&gt;
                ToSymbolCreateData(m_CreateData).Position = dres.Value;&lt;BR /&gt;
                return SamplerStatus.OK;&lt;BR /&gt;
            }&lt;BR /&gt;
            else&lt;BR /&gt;
            {&lt;BR /&gt;
                return SamplerStatus.NoChange;&lt;BR /&gt;
            }&lt;BR /&gt;
        }&lt;/LAPISEAST&gt;</description>
      <pubDate>Sat, 23 Sep 2006 01:41:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/acquirepoint-problem/m-p/1771511#M80320</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-23T01:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: AcquirePoint Problem</title>
      <link>https://forums.autodesk.com/t5/net-forum/acquirepoint-problem/m-p/1771512#M80321</link>
      <description>thanks tony for your reply.&lt;BR /&gt;
i removed AcceptMouseUpAsPoint in the UserInputControls,but still doesn't work.&lt;BR /&gt;
while from keyboard input cordinate of a point in the format of "x,y,z" ,i could find that the dres.status(return value of prompts.AcquirePoint()) is PromptStatus.Ok,but dres.value can not get the keyboard-input value. So.something will be created at the place where the cursor stayed at that time,but not the place what keyboard-input point defined.&lt;BR /&gt;
&lt;BR /&gt;
another truth is , i have another custom class derived from EntityJig,and in the Sampler override ,i also used AcquirePoint method which is completely the same as that one of DrawJig,from UserInputControls setting to the method make use of dres.value. but here,the user input from keyboard works well.&lt;BR /&gt;
&lt;BR /&gt;
does that the difference of DrawJig and EntityJig ?&lt;BR /&gt;
anyone has encountered the same problem?pls. help me</description>
      <pubDate>Tue, 17 Oct 2006 08:33:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/acquirepoint-problem/m-p/1771512#M80321</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-10-17T08:33:27Z</dc:date>
    </item>
  </channel>
</rss>

