<?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: Problem with Prompt Keywords in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/problem-with-prompt-keywords/m-p/1911493#M78665</link>
    <description>Keywords with GetString() ?&lt;BR /&gt;
&lt;BR /&gt;
If you want to obtain only keyword input, then&lt;BR /&gt;
you use GetKeyword(), not GetString().&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;RAMMOHA&gt; wrote in message news:5513769@discussion.autodesk.com...&lt;BR /&gt;
Hi All,&lt;BR /&gt;
&lt;BR /&gt;
I was just making a user prompt prcedure, but faced a strange problem. when I add Keywords to my prompt options, the code doesn't work at all.&lt;BR /&gt;
This is the code:&lt;BR /&gt;
&lt;BR /&gt;
Dim ed As Editor = Application.DocumentManager.MdiActiveDocument.Editor&lt;BR /&gt;
&lt;BR /&gt;
Dim prpipedata As PromptStringOptions = New PromptStringOptions("Select Property")&lt;BR /&gt;
Dim prpipedata_res As PromptResult = Nothing&lt;BR /&gt;
&lt;BR /&gt;
        prpipedata.Keywords.Add("Label")&lt;BR /&gt;
        prpipedata.Keywords.Add("Section")&lt;BR /&gt;
&lt;BR /&gt;
        prpipedata_res = ed.GetString(prpipedata)&lt;BR /&gt;
&lt;BR /&gt;
If prpipedata_res.Status = PromptStatus.Cancel Then&lt;BR /&gt;
    MsgBox("Error: user cancelled")&lt;BR /&gt;
Else&lt;BR /&gt;
    MsgBox(prpipedata_res.StringResult)&lt;BR /&gt;
End If&lt;BR /&gt;
&lt;BR /&gt;
This code works well only when I eliminate the two lines which assign keywords to the Prompt Options, can anybody help?&lt;/RAMMOHA&gt;</description>
    <pubDate>Sat, 10 Mar 2007 01:43:31 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2007-03-10T01:43:31Z</dc:date>
    <item>
      <title>Problem with Prompt Keywords</title>
      <link>https://forums.autodesk.com/t5/net-forum/problem-with-prompt-keywords/m-p/1911491#M78663</link>
      <description>Hi All,&lt;BR /&gt;
&lt;BR /&gt;
I was just making a user prompt prcedure, but faced a strange problem. when I add Keywords to my prompt options, the code doesn't work at all.&lt;BR /&gt;
This is the code:&lt;BR /&gt;
&lt;BR /&gt;
Dim ed As Editor = Application.DocumentManager.MdiActiveDocument.Editor&lt;BR /&gt;
&lt;BR /&gt;
Dim prpipedata As PromptStringOptions = New PromptStringOptions("Select Property")&lt;BR /&gt;
Dim prpipedata_res As PromptResult = Nothing&lt;BR /&gt;
&lt;BR /&gt;
        prpipedata.Keywords.Add("Label")&lt;BR /&gt;
        prpipedata.Keywords.Add("Section")&lt;BR /&gt;
&lt;BR /&gt;
        prpipedata_res = ed.GetString(prpipedata)&lt;BR /&gt;
&lt;BR /&gt;
If prpipedata_res.Status = PromptStatus.Cancel Then&lt;BR /&gt;
    MsgBox("Error: user cancelled")&lt;BR /&gt;
Else&lt;BR /&gt;
    MsgBox(prpipedata_res.StringResult)&lt;BR /&gt;
End If&lt;BR /&gt;
&lt;BR /&gt;
This code works well only when I eliminate the two lines which assign keywords to the Prompt Options, can anybody help?</description>
      <pubDate>Fri, 09 Mar 2007 17:35:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/problem-with-prompt-keywords/m-p/1911491#M78663</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-03-09T17:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Prompt Keywords</title>
      <link>https://forums.autodesk.com/t5/net-forum/problem-with-prompt-keywords/m-p/1911492#M78664</link>
      <description>In the PromptOptions.SetMessageAndKeywords(..., ...) method's doc says:&lt;BR /&gt;
"The display keywords portion of messageAndKeywords must be surrounded by an opening square bracket ("[") at the beginning and a closing square bracket ("]") at the end. The keywords in this list must be delimited by a forward slash character ("/")."&lt;BR /&gt;
So it may work if you replace the string "Select Property" with the following string:&lt;BR /&gt;
"Select Property[Label/Section]"&lt;BR /&gt;
I' don't have access to VS right now so I can;t test it, but try it.</description>
      <pubDate>Fri, 09 Mar 2007 20:19:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/problem-with-prompt-keywords/m-p/1911492#M78664</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-03-09T20:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Prompt Keywords</title>
      <link>https://forums.autodesk.com/t5/net-forum/problem-with-prompt-keywords/m-p/1911493#M78665</link>
      <description>Keywords with GetString() ?&lt;BR /&gt;
&lt;BR /&gt;
If you want to obtain only keyword input, then&lt;BR /&gt;
you use GetKeyword(), not GetString().&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;RAMMOHA&gt; wrote in message news:5513769@discussion.autodesk.com...&lt;BR /&gt;
Hi All,&lt;BR /&gt;
&lt;BR /&gt;
I was just making a user prompt prcedure, but faced a strange problem. when I add Keywords to my prompt options, the code doesn't work at all.&lt;BR /&gt;
This is the code:&lt;BR /&gt;
&lt;BR /&gt;
Dim ed As Editor = Application.DocumentManager.MdiActiveDocument.Editor&lt;BR /&gt;
&lt;BR /&gt;
Dim prpipedata As PromptStringOptions = New PromptStringOptions("Select Property")&lt;BR /&gt;
Dim prpipedata_res As PromptResult = Nothing&lt;BR /&gt;
&lt;BR /&gt;
        prpipedata.Keywords.Add("Label")&lt;BR /&gt;
        prpipedata.Keywords.Add("Section")&lt;BR /&gt;
&lt;BR /&gt;
        prpipedata_res = ed.GetString(prpipedata)&lt;BR /&gt;
&lt;BR /&gt;
If prpipedata_res.Status = PromptStatus.Cancel Then&lt;BR /&gt;
    MsgBox("Error: user cancelled")&lt;BR /&gt;
Else&lt;BR /&gt;
    MsgBox(prpipedata_res.StringResult)&lt;BR /&gt;
End If&lt;BR /&gt;
&lt;BR /&gt;
This code works well only when I eliminate the two lines which assign keywords to the Prompt Options, can anybody help?&lt;/RAMMOHA&gt;</description>
      <pubDate>Sat, 10 Mar 2007 01:43:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/problem-with-prompt-keywords/m-p/1911493#M78665</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-03-10T01:43:31Z</dc:date>
    </item>
  </channel>
</rss>

