Right-Click Menu for command line options

Discussion in 'AutoCAD' started by Nathan Guill, Apr 1, 2004.

  1. Nathan Guill

    Nathan Guill Guest

    I have a routine that has the user select a material type from a userform in
    order to get a density from a common database. Once this happens, it asks
    the user where the axis is for the closed polyline the user is wanting the
    weight for. This is the point that I need help at.
    At the command line the following is displayed:

    Select center line (Xaxis Yaxis Object):

    I would like to be able to answer this either on the command line or from a
    right-click menu. How would I get a right-click menu for this situation?
     
    Nathan Guill, Apr 1, 2004
    #1
    1. Advertisements

  2. to get the right-click menu to work use the getkeyword function

    Here is a snipit from my use of it.

    keyword = "Manhole Cleanout Subdivison User"
    pUtil.InitializeUserInput 2, keyword
    response = pUtil.GetKeyword("Is This location a
    [Manhole/Cleanout/Sub-bndy/User Location]<" & WWoption & ">: ")
    If response = "" Then response = WWoption
    WWoption = response
    SaveSetting "DOU", "profile", "WWoption", WWoption
    Select Case WWoption
    Case "Manhole"
    data(3) = "User Manhole"
    Case "Cleanout"
    data(3) = "Cleanout"
    Case "Subdivison"
    data(3) = "Subdivison Boundary"
    Case "User"
    data(3) = "User Location"
    End Select


    The bracked options in the prompt is what shows up in the right-click
    menu. The user can either pick from the right-click menu or pick the
    first letter in the keyword list. works great.

    David Urban
     
    David Urban, P.E., Apr 1, 2004
    #2
    1. Advertisements

  3. Nathan Guill

    Nathan Guill Guest

    Thank you. This is exactly what I needed.


     
    Nathan Guill, Apr 1, 2004
    #3
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.