strcat with abs

Discussion in 'AutoCAD' started by amjarch, Sep 21, 2004.

  1. amjarch

    T.Willey Guest

    Doug,

    I work with mechanical engineers, so I know that all trailing zeros are not just place holders. Sometimes they want them, and then sometimes they don't, so I have to adjust some dimensions. Coming from an architectural drafting background, keeping those zeros at the beginning sounded crazy, but after I learned what they meant to them I understand now.

    Tim
     
    T.Willey, Sep 21, 2004
    #21
  2. amjarch

    amjarch Guest

    Daron,

    You are most correct...That's the sort of built it answer I was looking for. I am fairly new to lisp and I have been shying away from the "vl" prefixed commands (i thought they weren't lisp for some reason...silly me) It appears my answer was there all along.

    Thanks again,
    Drew
     
    amjarch, Sep 22, 2004
    #22
  3. amjarch

    Daron Denton Guest

    that "v" at the beginning *does* look a little menacing, doesn't it? ;o)
    it's good learning exercise to go the long route some times.

    --
    Daron
    We are human beings,
    not human doings.



    for. I am fairly new to lisp and I have been shying away from the "vl"
    prefixed commands (i thought they weren't lisp for some reason...silly me)
    It appears my answer was there all along.
     
    Daron Denton, Sep 22, 2004
    #23
  4. I see we're on the same wavelength today. ;-)

    It is an honor for me.

    ;-)
     
    Marc'Antonio Alessi, Sep 22, 2004
    #24
  5. amjarch

    Jeff Mishler Guest

    And actually, the DIMZIN sysvar is more of the built-in command.

    (setq nmbr1 60.00
    nmbr2 60.00500300
    old-dimzin (getvar "dimzin")
    old-luprec (getvar "luprec"))
    (setvar "dimzin" 8)
    (setvar "luprec" 8)
    (rtos nmbr1)
    (rtos nmbr2)
    (setvar "dimzin" old-dimzin)
    (setvar "luprec" old-luprec)
    Returns:

    "60"
    "60.005003"

    So before you do your rtos, set the dimzin to 8......
     
    Jeff Mishler, Sep 22, 2004
    #25
  6. amjarch

    Jeff Mishler Guest

    Well, it appears I shouldv'e read the rest of this thread before I responded
    since Marc & Doug already said this yesterday. Oh well....... ;-)
     
    Jeff Mishler, Sep 22, 2004
    #26
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.