(initget ...)

Discussion in 'AutoCAD' started by Adesu, Apr 15, 2004.

  1. Adesu

    Adesu Guest

    Dear Alls,
    (initget 1 ) = not allow "enter"
    (initget 2 ) = not allow "0"
    (initget 3 ) = not allow "enter" & "0"
    (initget 4 ) = not allow "- value"
    (initget 5 ) = not allow "+ value" & "- value"
    (initget 6 ) = not allow "0"
    (initget 7 ) = not allow "enter" & "+ value" & "- value"
    (initget 8 ) = cancel limit check
    (initget 16 ) = not used
    (initget 32 ) = cause get function that include a base point to display a
    rubber band cursor or window that is highlighted rather than solid
    (initget 64 ) = not allow Z coordinate in next getdist function
    (initget 128 ) = allow arbitrary input (accept any "key word")
    (initget ... ) = ???
    (initget ... ) = ???
    (initget ... ) = ???
    (initget ... ) = ???
    Any others ???
    Best regards
    Ade Suharna
     
    Adesu, Apr 15, 2004
    #1
  2. Adesu

    Doug Broad Guest

    See the developer help for more info. There are
    theoretically 256 possiblities base on sums of
    0, 1, 2, 4, 8, 16, 32, 64, and 128 although not
    all modes are relevant for individual getxxx functions.
    The developer help has a matrix of which shows
    the applicabilities.
     
    Doug Broad, Apr 16, 2004
    #2
  3. Adesu

    Adesu Guest

    Hi Doug,how about
    (initget "Yes No") = ????
    (initget "") = ????
    any comment ?
     
    Adesu, Apr 20, 2004
    #3
  4. Adesu

    SpeedCAD Guest

    (initget "Yes No") => GetKword
    (initget "Yes Si No")
     
    SpeedCAD, Apr 20, 2004
    #4
  5. Adesu

    Doug Broad Guest

    Initget takes 2 arguments. The string argument
    is for keywords. I prefer to store the keyword
    string and use it for both the keyword prompt
    and the initget string. Supporting multiple languages
    in a single program could be counterproductive
    since the keyword strings and program branching
    become more difficult to maintain and debug.
    I would rather have a localization scheme with
    separately maintainable keyword and phrase
    files.

    I usually use initget with the bit argument in
    addition to the keyword string but agree here
    that no bit argument is necessary. The prompt
    should make clear which is the default response.
     
    Doug Broad, Apr 20, 2004
    #5
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.
Similar Threads
Loading...