<?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 Help with Prompt Selection Options with Custom Message in Civil 3D Customization Forum</title>
    <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/help-with-prompt-selection-options-with-custom-message/m-p/8366932#M10657</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am hoping someone can help me with this. I am trying to allow for the selection of multiple cogo point but also filter so only cogo points can be selected. I have been playing with the code below but it does not show my custom message; it seems to bypass it completely. I am sure it is something simple but I just cant get it. Any help would be greatly appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Try

            'Create a typedvalue array to define the filter criteria
            Dim acTypValAr(0) As TypedValue
            acTypValAr.SetValue(New TypedValue(DxfCode.Start, "AECC_COGO_POINT"), 0)

            'Assign the filter criteria to a selectionfilter object
            Dim acSelFtr As SelectionFilter = New SelectionFilter(acTypValAr)

            Dim promptSelectionOptions = New PromptSelectionOptions
            promptSelectionOptions.MessageForAdding = (vbLf &amp;amp; "Select COGO Points to move labels:")

            Dim selectedCogoPointsResult = SelectionPromptResults(acSelFtr)

            'If selection is a cogo point
            If selectedCogoPointsResult.Status = PromptStatus.OK Then

                Dim acSSet As SelectionSet = selectedCogoPointsResult.Value&lt;/PRE&gt;&lt;P&gt;In conjunction with this function:&lt;/P&gt;&lt;PRE&gt;Private Function SelectionPromptResults(options As SelectionFilter) As PromptSelectionResult

        Dim acDocEd As Editor = Active.Editor

        Return acDocEd.GetSelection(options)

    End Function&lt;/PRE&gt;</description>
    <pubDate>Mon, 29 Oct 2018 21:15:19 GMT</pubDate>
    <dc:creator>David_Prontnicki</dc:creator>
    <dc:date>2018-10-29T21:15:19Z</dc:date>
    <item>
      <title>Help with Prompt Selection Options with Custom Message</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/help-with-prompt-selection-options-with-custom-message/m-p/8366932#M10657</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am hoping someone can help me with this. I am trying to allow for the selection of multiple cogo point but also filter so only cogo points can be selected. I have been playing with the code below but it does not show my custom message; it seems to bypass it completely. I am sure it is something simple but I just cant get it. Any help would be greatly appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Try

            'Create a typedvalue array to define the filter criteria
            Dim acTypValAr(0) As TypedValue
            acTypValAr.SetValue(New TypedValue(DxfCode.Start, "AECC_COGO_POINT"), 0)

            'Assign the filter criteria to a selectionfilter object
            Dim acSelFtr As SelectionFilter = New SelectionFilter(acTypValAr)

            Dim promptSelectionOptions = New PromptSelectionOptions
            promptSelectionOptions.MessageForAdding = (vbLf &amp;amp; "Select COGO Points to move labels:")

            Dim selectedCogoPointsResult = SelectionPromptResults(acSelFtr)

            'If selection is a cogo point
            If selectedCogoPointsResult.Status = PromptStatus.OK Then

                Dim acSSet As SelectionSet = selectedCogoPointsResult.Value&lt;/PRE&gt;&lt;P&gt;In conjunction with this function:&lt;/P&gt;&lt;PRE&gt;Private Function SelectionPromptResults(options As SelectionFilter) As PromptSelectionResult

        Dim acDocEd As Editor = Active.Editor

        Return acDocEd.GetSelection(options)

    End Function&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Oct 2018 21:15:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/help-with-prompt-selection-options-with-custom-message/m-p/8366932#M10657</guid>
      <dc:creator>David_Prontnicki</dc:creator>
      <dc:date>2018-10-29T21:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Prompt Selection Options with Custom Message</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/help-with-prompt-selection-options-with-custom-message/m-p/8368507#M10658</link>
      <description>&lt;P&gt;You need to pass both the options and the filter to the function GetSelection.&lt;/P&gt;&lt;PRE&gt;&lt;BR /&gt; Dim tv(0) As TypedValue
 tv.SetValue(New TypedValue(DxfCode.Start, "AECC_COGO_POINT"), 0)

Dim filter As New SelectionFilter(tv)
Dim pso As New PromptSelectionOptions()
pso.MessageForAdding = vbCrLf + "Select Cogo Points Move Labels"

Dim res As PromptSelectionResult = ed.GetSelection(pso, filter)&lt;/PRE&gt;</description>
      <pubDate>Tue, 30 Oct 2018 13:28:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/help-with-prompt-selection-options-with-custom-message/m-p/8368507#M10658</guid>
      <dc:creator>hippe013</dc:creator>
      <dc:date>2018-10-30T13:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Prompt Selection Options with Custom Message</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/help-with-prompt-selection-options-with-custom-message/m-p/8369996#M10659</link>
      <description>&lt;P&gt;Thank you, I knew it would be something simple. I appreciate the help!&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2018 23:12:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/help-with-prompt-selection-options-with-custom-message/m-p/8369996#M10659</guid>
      <dc:creator>David_Prontnicki</dc:creator>
      <dc:date>2018-10-30T23:12:36Z</dc:date>
    </item>
  </channel>
</rss>

