Strange result

Discussion in 'AutoCAD' started by Marcel Janmaat, Dec 7, 2004.

  1. How can this; (setq a '(0.25 0.33))
    Result in this; (0.0 0.0)?

    Never had this before.

    My units are ok. (I think)

    M
     
    Marcel Janmaat, Dec 7, 2004
    #1
  2. Try:

    Verify DIMZIN variable. Set in 2.

    Rogério
     
    Rogerio_Brazil, Dec 7, 2004
    #2
  3. It has nothing to do with dimzin.

    See;

    _$ (setvar "dimzin" 2)
    2
    _$ (setq a '(0.25 0.45))
    (0.0 0.0)
     
    Marcel Janmaat, Dec 7, 2004
    #3
  4. I just noticed it works fine when I leave vlide.
    Strange!
     
    Marcel Janmaat, Dec 7, 2004
    #4
  5. I'm in home now. My autocad is not instaled yet (I formatted my pc by my self). Tomorrow I can chek for you.

    Try again: (setvar "dimdec" 2).

    Rogerio
     
    Rogerio_Brazil, Dec 7, 2004
    #5
  6. Nope!

    _$ (setvar "dimdec" 2)
    2
    _$ (setq a '(0.25 0.44))
    (0.0 0.0)
    _$

    I only have this problem when vlide is active.
    Otherwise my routines work just fine.
     
    Marcel Janmaat, Dec 7, 2004
    #6
  7. Marcel Janmaat

    StefVdM Guest

    I don't think this is a problem of system variables. All the variables concerning "dimensions" just determine how the value of a dimension will be displayed.

    Here we're talking about assigning a value to a variable, so I don't see why system variables should have in influence on this.

    But, to be honest, I don't know what could the problem then, all the more because when I try the same thing, I get the "expected result:

    Visual LISP Console:
    _$(setq a '(0.25 0.44))
    (0.25 0.44)

    Command Line:
    command: (setq a '(0.25 0.44))
    (0.25 0.44)

    Sorry, I know this isn't very helpful...

    Stef
     
    StefVdM, Dec 8, 2004
    #7
  8. Yes. Variables concerning "dimensions" change a exibition of texts. You begginer in autolisp?

    []´s,

    Rogerio
     
    Rogerio_Brazil, Dec 8, 2004
    #8
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.