Lisp\Vba question

Discussion in 'AutoCAD' started by Bjorn Olsson, May 4, 2004.

  1. Bjorn Olsson

    Bjorn Olsson Guest

    Am trying to create a little command that will measure a length of line, say
    the side of a house, then insert blocks along it.

    As well as that, i would like it to choose wich blocks to fit best, as have
    some of varying lengths, to satifactorial be close to the length of the
    original line. For example, the line is 2400 long. i have blocks that are
    500 and 200 long. I want it to arrange them so it uses four at 500 and two
    at 200.

    How difficult is it to write such a routine? Have written basic routines,
    but this ones still eludes me :(

    Cheers

    Bjorn
     
    Bjorn Olsson, May 4, 2004
    #1
  2. It's probably a bit ambitious for a real beginner, but not that hard. You
    will probably have a section where you calculate the number and combination
    of blocks, and a loop where you generate the insertion points and insert the
    blocks. You should probably work means to catch errors along the way.
    Not hard really.
     
    Michael Bulatovich, May 5, 2004
    #2
  3. Bjorn Olsson

    bob.at Guest

    bob.at, May 5, 2004
    #3
  4. Bjorn Olsson

    Bjorn Olsson Guest

    sorry bob for not replying promptly, didn't mean to be rude or offend you as
    you seem to be.

    Cheers

    bjorn
     
    Bjorn Olsson, May 6, 2004
    #4
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.