divide the result by 2

Discussion in 'AutoCAD' started by buttons129, Apr 2, 2004.

  1. buttons129

    buttons129 Guest

    this is an exert from a conceal command we are using but the `conceal gap' is returned from the `dimscale' Q how can i divide the result by 2, i.e. my dimscale is 50 i want the gap to be 25



    (setvar "osmode" 0)
    (setq ang (angle p1 p2))
    (setq p4 (polar p1 ang (getvar "dimscale")))
    (setq p3 (polar p1 (+ pi ang) (getvar "dimscale")))
    (setq p6 (polar p2 ang (getvar "dimscale")))
    (setq p5 (polar p2 (+ pi ang) (getvar "dimscale")))
    (cond
     
    buttons129, Apr 2, 2004
    #1
  2. buttons129

    Barr Guest

    (setvar "osmode" 0)
    (setq ds2 (/ (getvar "dimscale") 2.0))
    (setq ang (angle p1 p2))
    (setq p4 (polar p1 ang ds2))
    (setq p3 (polar p1 (+ pi ang) ds2))
    (setq p6 (polar p2 ang ds2))
    (setq p5 (polar

    `conceal gap' is returned from the `dimscale' Q how can i divide the
    result by 2, i.e. my dimscale is 50 i want the gap to be 25
     
    Barr, Apr 2, 2004
    #2
  3. buttons129

    buttons129 Guest

    sorted!
     
    buttons129, Apr 2, 2004
    #3
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.