Nee library DWG of 700+ block directory

Discussion in 'AutoCAD' started by JBK, Feb 18, 2004.

  1. JBK

    JBK Guest

    Know any fast ways to get 700+ blocks into a single DWG to be used as a
    library?

    3rd party or lsp, doesn't matter to us.

    Thanks for your help.
     
    JBK, Feb 18, 2004
    #1
  2. JBK

    Rudy Tovar Guest

    Are they in the same directory?

    (setq ifiles(vla-directory-files .. .. ..))
    (setq cn 0)
    (while (setq fname (nth cn ifiles))
    (command "insert" (nth cn ifiles) "" "" "")
    (setq cn (1+ cn))
    )
     
    Rudy Tovar, Feb 18, 2004
    #2
  3. JBK

    Rudy Tovar Guest

    You can set it up to space the blocks next to each other by assigning a x
    and y value.

    It will need to be converted to a vlx file format by compiling and finishing
    the verbish I've outlined.

    ;In the while statement do the following

    (if (= count nil)(setq count 0))

    (if ins (setq ins (polar ins 0.0 <distance>)
    (setq ins (list 0 0) base (list 0 0))
    )
    (setq count (1+ count))
    (if (> count <num>)
    (setq ins (polar base (dtr 90) <distance>) base ins)
    )

    ;Start a count and equally space and place the blocks. As the blocks are
    being cycled a new row will be created for each defined <num>.

    Have fun!
    --

    AUTODESK
    Authorized Developer
    www.Cadentity.com
    MASi
     
    Rudy Tovar, Feb 18, 2004
    #3
  4. JBK

    JBK Guest

    Very cool.


     
    JBK, Feb 18, 2004
    #4
  5. Plug! Plug! Plug! Terry - do you ever give any advice *besides* buying your
    product? I thought this forum was for people trying to learn doing their own
    customization - not an advertisement forum for your software! :)

    Sorry - I'm done ranting now...
     
    Phil Kenewell, Feb 20, 2004
    #5
  6. JBK

    Jeff Mishler Guest

    Hmmm, the original poster DID say 3rd party didn't matter, so Terry WAS
    advising the poster....

    Jeff
     
    Jeff Mishler, Feb 20, 2004
    #6
  7. JBK

    apollo Guest

    Yes it is a plug but then people buy autocad instead of trying to develop their own drawing package. The dotsoft product works and works well (and the documentation is good too). The suggestion which would require outlay of funds is a solution and would solve not only the stated problem but most likely others which the questioning party may have. it is an economic decision - money spent vs time spent - personally i come out money ahead by purchasing the package of solutions.
     
    apollo, Feb 20, 2004
    #7
  8. JBK

    OLD-CADaver Guest

    OLD-CADaver, Feb 20, 2004
    #8
  9. JBK

    Anne Brown Guest

    If a post is a DIRECT ANSWER to a user's request for help and not
    a stand alone post, it is allowed. Many third party developers
    have help for user's questions and do not blatantly advertise.
     
    Anne Brown, Feb 20, 2004
    #9
  10. Don't get me wrong - I don't mind an occasional plug in this NG (even though
    it's technically against the rules). I've recommended 3rd party stuff
    before. I just seems that *every* reply Terry gives in this newsgroup is a
    plug for his Toolpac. With his knowledge of Visual LISP, VBA, and ARX
    programming - he could help give advice in the form of code snippets to help
    these fellow posters learn how to write their own programs, which is what
    *this* NG is about. Constant plugs for add-on software belong in the CAD
    manager or Classified NG, rather than here. I apologise for the rant but
    that's how I feel.
     
    Phil Kenewell, Feb 20, 2004
    #10
  11. If a post is a DIRECT ANSWER to a user's request for help and not
    Sorry Anne - I didn't realise this was the case. I guess I'm just "Grumpy"
    today.
     
    Phil Kenewell, Feb 20, 2004
    #11
  12. JBK

    Anne Brown Guest

    No problem Phil. Developers have a hard line to walk to give help
    to users and not come across as simply selling. We have MANY
    users who handle it quite well and those that don't, get emails.
     
    Anne Brown, Feb 21, 2004
    #12
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.