Usser1 in lisp

Discussion in 'AutoCAD' started by sepult, Jun 24, 2004.

  1. sepult

    sepult Guest

    I need a little direction here if any one can help.

    I have a lisp that draws flex than inserts a block found on our network.

    example (command "insert" "blockname" pause "96" "96")

    there is much more to this lisp, but this is the area i'm confused about.

    when it issues the block insertion I have the X,Y scale written in the lisp to come in at 96,96 being a 1/8" scale drawing. I want however the block scaling to be determined by the userr1 variable, so the size will vary depending on what scale of drawing we are working on.

    can i issue a setvar within a command?
     
    sepult, Jun 24, 2004
    #1
  2. sepult

    Walt Engle Guest

    I use the following for one of my blocks: -insert fillns \(getvar "dimscale");;

    this way, the block is sized per the dimscale, i.e., 96 for 1/8" scale.
     
    Walt Engle, Jun 24, 2004
    #2
  3. sepult

    sepult Guest

    I'm looking in to that? it works but doesn't prompt me for rotation of block.
     
    sepult, Jun 24, 2004
    #3
  4. (command "._Insert" "blockname" "_s" (getvar "UserR1"))

    --
    R. Robert Bell


    I'm looking in to that? it works but doesn't prompt me for rotation of
    block.
     
    R. Robert Bell, Jun 25, 2004
    #4
  5. sepult

    Walt Engle Guest

    Delete one of the semicolons which is the same as an enter for rotation of zero.
     
    Walt Engle, Jun 25, 2004
    #5
  6. sepult

    sepult Guest

    That works like a charm!
    Thank you for your input.
     
    sepult, Jun 25, 2004
    #6
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.