<?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: Keyword Problem in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/keyword-problem/m-p/3877097#M49900</link>
    <description>&lt;P&gt;sorry i found my error&lt;BR /&gt;was here&lt;/P&gt;&lt;PRE&gt;AcKwrdOption2.Keywords.Default = Modification&lt;/PRE&gt;&lt;P&gt;and correct to&lt;/P&gt;&lt;PRE&gt;AcKwrdOption2.Keywords.Default = "ON"&lt;/PRE&gt;</description>
    <pubDate>Sun, 21 Apr 2013 10:23:47 GMT</pubDate>
    <dc:creator>Amremad</dc:creator>
    <dc:date>2013-04-21T10:23:47Z</dc:date>
    <item>
      <title>Keyword Problem</title>
      <link>https://forums.autodesk.com/t5/net-forum/keyword-problem/m-p/3877094#M49899</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Imports Autodesk.AutoCAD.EditorInput
Imports Autodesk.AutoCAD.ApplicationServices
Imports Autodesk.AutoCAD.DatabaseServices
Imports Autodesk.AutoCAD.Geometry

Public NotInheritable Class EditInformations
    Private Shared Modification As String
    Private Shared Path As String
    Private Shared InClose As String
    Private Shared DWGType As String
    Public Shared Sub EditInformation()
        InClose = GetSetting("AMR LISP", "Information Editing", "InClose", "Off")
        Modification = GetSetting("AMR LISP", "Information Editing", "Modification", "selected")
        Path = GetSetting("AMR LISP", "Information Editing", "Path", "off")
        DWGType = GetSetting("AMR LISP", "Information Editing", "Type", "on")

        ' create selection filter with typedvalues
        Dim TypedValues(0) As TypedValue
        TypedValues.SetValue(New TypedValue(DxfCode.BlockName, "BIO.Doc.Info"), 0)
        Dim AcSelFtr As SelectionFilter = New SelectionFilter(TypedValues)

        'create keywords options for selection
        Dim AcSelOption As PromptSelectionOptions = New PromptSelectionOptions
        AcSelOption.Keywords.Add("Settings")
        AcSelOption.MessageForAdding = (vbLf &amp;amp; "Select Objects " &amp;amp; AcSelOption.Keywords.GetDisplayString(True))
        AcSelOption.Keywords.Default = "Settings"
        AcSelOption.AllowSubSelections = True
        'start selectionset with keywords and filter

        Dim AcSelPrompt As PromptSelectionResult
        AddHandler AcSelOption.KeywordInput, AddressOf handle_KeywordInput
        AcSelPrompt = Application.DocumentManager.MdiActiveDocument.Editor.GetSelection(AcSelOption, AcSelFtr)

        If AcSelPrompt.Status = PromptStatus.OK Then

        ElseIf AcSelPrompt.Status = PromptStatus.Error Then

        End If
    End Sub
    Private Shared Sub handle_KeywordInput(ByVal sender As Object, ByVal e As SelectionTextInputEventArgs)
        Dim AcKwrdOption As PromptKeywordOptions = New PromptKeywordOptions(vbLf &amp;amp; "Which method you will use  [Modification/InClose/Path/Type]: ", "Modification InClose Path Type")
        AcKwrdOption.Keywords.Default = "Modification"
        Dim AcKwrdResult As PromptResult = Application.DocumentManager.MdiActiveDocument.Editor.GetKeywords(AcKwrdOption)
        If AcKwrdResult.Status = PromptStatus.OK Then
            Select Case AcKwrdResult.StringResult
                Case "Modification"
                    Dim AcKwrdOption2 As PromptKeywordOptions = New PromptKeywordOptions(vbLf &amp;amp; "Which method you will use  [ON/OFF] : ", "ON OFF")
                    AcKwrdOption2.Keywords.Default = Modification
                    Dim AcKwrdResult2 As PromptResult = Application.DocumentManager.MdiActiveDocument.Editor.GetKeywords(AcKwrdOption2)
                    If AcKwrdResult2.Status = PromptStatus.OK Then
                        Modification = AcKwrdResult2.StringResult
                    End If
                Case "InClose"

                Case "Path"

                Case "Type"
            End Select
        End If
    End Sub
End Class&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="55.jpg" title="55.jpg" height="421" border="0" width="556" align="middle" src="https://forums.autodesk.com/t5/image/serverpage/image-id/51084iD7063A5921E54119/image-size/original?v=mpbl-1&amp;amp;px=-1" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in this picture , i can't create a keyword on and off if the user choose Modification&lt;/P&gt;&lt;P&gt;how can i do it?&lt;/P&gt;</description>
      <pubDate>Sun, 21 Apr 2013 09:52:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/keyword-problem/m-p/3877094#M49899</guid>
      <dc:creator>Amremad</dc:creator>
      <dc:date>2013-04-21T09:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Keyword Problem</title>
      <link>https://forums.autodesk.com/t5/net-forum/keyword-problem/m-p/3877097#M49900</link>
      <description>&lt;P&gt;sorry i found my error&lt;BR /&gt;was here&lt;/P&gt;&lt;PRE&gt;AcKwrdOption2.Keywords.Default = Modification&lt;/PRE&gt;&lt;P&gt;and correct to&lt;/P&gt;&lt;PRE&gt;AcKwrdOption2.Keywords.Default = "ON"&lt;/PRE&gt;</description>
      <pubDate>Sun, 21 Apr 2013 10:23:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/keyword-problem/m-p/3877097#M49900</guid>
      <dc:creator>Amremad</dc:creator>
      <dc:date>2013-04-21T10:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Keyword Problem</title>
      <link>https://forums.autodesk.com/t5/net-forum/keyword-problem/m-p/13396482#M49901</link>
      <description>&lt;P&gt;i have the same issues&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2025 15:18:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/keyword-problem/m-p/13396482#M49901</guid>
      <dc:creator>SUGARYeUNGG</dc:creator>
      <dc:date>2025-03-28T15:18:46Z</dc:date>
    </item>
  </channel>
</rss>

