<?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: PromptPointOptions with no message always prints a colon (:) in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/promptpointoptions-with-no-message-always-prints-a-colon/m-p/12269438#M7198</link>
    <description>&lt;P&gt;The colon remains even with the new line.&lt;BR /&gt;&lt;BR /&gt;For now, I solved my problem by using the NOMUTT system variable. Nothing gets printed to the command line. However the colon still remains in the field next to the mouse when picking a point, so I've set the 'Pick a point' message to be shown there.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;object nomutt = Application.GetSystemVariable("NOMUTT");
Application.SetSystemVariable("NOMUTT", 1);

PromptPointOptions pPick = new PromptPointOptions("Pick a point");
//...

// restore system variable
Application.SetSystemVariable("NOMUTT", nomutt);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;If somebody knows of how to omit the colon without using the NOMUTT, the answer is stil welcome.&lt;/P&gt;</description>
    <pubDate>Wed, 27 Sep 2023 08:59:53 GMT</pubDate>
    <dc:creator>tipitasa</dc:creator>
    <dc:date>2023-09-27T08:59:53Z</dc:date>
    <item>
      <title>PromptPointOptions with no message always prints a colon (:)</title>
      <link>https://forums.autodesk.com/t5/net-forum/promptpointoptions-with-no-message-always-prints-a-colon/m-p/12264357#M7196</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;I would like to use a&amp;nbsp;PromptPointOptions with no message.&lt;BR /&gt;I use it when user clicks a button and I&amp;nbsp;always get a colon printed to the command line. They even keep stacking in the same line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;PromptPointOptions pPick = new PromptPointOptions("");
pPick.Message = "";  // this line does not change anything&lt;/LI-CODE&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;&lt;P&gt;I do change some system variables before calling the prompt, but this should not have any effect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;            // Set PolarMode to include 1 + 4
            // ("Relative to last segment" and "Additional angles")
            Application.SetSystemVariable("POLARMODE", 5);
            // set AUTOSNAP to include everything
            Application.SetSystemVariable("AUTOSNAP", 63);
            Application.SetSystemVariable("ANGBASE", inLineAngle);
            Application.SetSystemVariable("ANGDIR", 1);&lt;/LI-CODE&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;&lt;P&gt;&lt;BR /&gt;This is how picking the point looks like with Dynamic Input on or off. The colon is always here. If I add a message to the prompt, it just shows before the colon.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tipitasa_1-1695645952166.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1271279iAC49E6562921C114/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tipitasa_1-1695645952166.png" alt="tipitasa_1-1695645952166.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tipitasa_2-1695645961818.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1271280i2A5E5A5777BDC6D7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tipitasa_2-1695645961818.png" alt="tipitasa_2-1695645961818.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;And the command line, see the colons:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tipitasa_3-1695646065755.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1271282i6DC1DAD8390F129F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tipitasa_3-1695646065755.png" alt="tipitasa_3-1695646065755.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 12:50:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/promptpointoptions-with-no-message-always-prints-a-colon/m-p/12264357#M7196</guid>
      <dc:creator>tipitasa</dc:creator>
      <dc:date>2023-09-25T12:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: PromptPointOptions with no message always prints a colon (:)</title>
      <link>https://forums.autodesk.com/t5/net-forum/promptpointoptions-with-no-message-always-prints-a-colon/m-p/12264734#M7197</link>
      <description>&lt;P&gt;Firstly, it is always good to provide a meaningful prompt and command line when you expect user to interact to the editor, even the action is initialized from a dialog box when user click the button "Pick Point &amp;gt;". Imaging this: after user clicks the button, the dialog is hidden, before the user picks the point, he/she gets a phone call for lengthy talk. When the talk is done, he/she is facing the Acad editor with empty command line and could not figure out where he/she was left.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway, using empty prompt or not, you should ALWAYS start the prompt with new line ("\n"):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;PromptPointOptions pPick = new PromptPointOptions("\n");&lt;/LI-CODE&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;PromptPointOptions pPick = new PromptPointOptions("\nSelect a point:");&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 14:53:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/promptpointoptions-with-no-message-always-prints-a-colon/m-p/12264734#M7197</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2023-09-25T14:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: PromptPointOptions with no message always prints a colon (:)</title>
      <link>https://forums.autodesk.com/t5/net-forum/promptpointoptions-with-no-message-always-prints-a-colon/m-p/12269438#M7198</link>
      <description>&lt;P&gt;The colon remains even with the new line.&lt;BR /&gt;&lt;BR /&gt;For now, I solved my problem by using the NOMUTT system variable. Nothing gets printed to the command line. However the colon still remains in the field next to the mouse when picking a point, so I've set the 'Pick a point' message to be shown there.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;object nomutt = Application.GetSystemVariable("NOMUTT");
Application.SetSystemVariable("NOMUTT", 1);

PromptPointOptions pPick = new PromptPointOptions("Pick a point");
//...

// restore system variable
Application.SetSystemVariable("NOMUTT", nomutt);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;If somebody knows of how to omit the colon without using the NOMUTT, the answer is stil welcome.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 08:59:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/promptpointoptions-with-no-message-always-prints-a-colon/m-p/12269438#M7198</guid>
      <dc:creator>tipitasa</dc:creator>
      <dc:date>2023-09-27T08:59:53Z</dc:date>
    </item>
  </channel>
</rss>

