Results 1 to 7 of 7

Thread: Insert list of block names in a txt file

  1. #1
    100 Club aharris's Avatar
    Join Date
    2003-08
    Location
    Lubbock, TX
    Posts
    106
    Login to Give a bone
    0

    Default Insert list of block at one time

    It's been too long time ago and I hope someone can help me. I have a long list of blocks that needs to inserted inside a dwg that came from a database. How do I make a lsp program to insert this list that in a text file? I remember doing it...about 5 years ago!!!

    Thanks for any help!!!
    Last edited by aharris; 2006-11-14 at 10:10 PM.

  2. #2
    AUGI Addict fixo's Avatar
    Join Date
    2005-05
    Location
    Pietari, Venäjä
    Posts
    1,269
    Login to Give a bone
    0

    Default Re: Insert list of block names in a txt file

    Hi
    I have a read your task five times but have no luck with
    understanding with your problem exactly
    Okay, let me guess about it:
    - You have a file with list of blocks you need to insert in your drawing
    - What is this database? Is this Access database or text file or Excel file or something
    else
    How is written a data into it (i.e. block name, insertion point, attribute values)
    etc
    There is not clear enough to solve your task, sorry
    Better yet you need to attach some samples I think...
    Maybe I am so stupid though

    ~'J'~

  3. #3
    Administrator Opie's Avatar
    Join Date
    2002-01
    Location
    jUSt Here (a lot)
    Posts
    9,193
    Login to Give a bone
    0

    Default Re: Insert list of block names in a txt file

    Have you tried a search of the AutoLISP forum for insert block?
    If you have a technical question, please find the appropriate forum and ask it there.
    You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
    jUSt

  4. #4
    100 Club aharris's Avatar
    Join Date
    2003-08
    Location
    Lubbock, TX
    Posts
    106
    Login to Give a bone
    0

    Default Re: Insert list of block names in a txt file

    Okay, I thought maybe I made it too general. I have a file that I made from a database that stored x,y, scale, block name, etc. So I kicked that out to a txt file that looks something like this:

    -INSERT
    BLOCKNAME
    1578654,11593770
    1
    1
    89.51319633
    ATTRIBUTE1
    ATTRIBUTE2
    ATTRIBUTE3
    ATTRIBUTE4
    ATTRIBUTE5
    -INSERT
    BLOCKNAME
    1595206,11598380
    1
    1
    1
    270.3902427
    ATTRIBUTE1
    ATTRIBUTE2
    ATTRIBUTE3
    ATTRIBUTE4
    ATTRIBUTE5
    .
    .
    .
    .
    Which is the insert command, "x,y", y scale, x scale, rotation, then all the attribute info for the block.

    How to I make this list just run in AutoCAD? Make anymore since???

  5. #5
    100 Club aharris's Avatar
    Join Date
    2003-08
    Location
    Lubbock, TX
    Posts
    106
    Login to Give a bone
    0

    Default Re: Insert list of block names in a txt file

    Quote Originally Posted by Opie
    Have you tried a search of the AutoLISP forum for insert block?
    Yea I looked, but couldn't find anything about long list of inserts....which I should have made more clear in my first post - my bad...

  6. #6
    Administrator Opie's Avatar
    Join Date
    2002-01
    Location
    jUSt Here (a lot)
    Posts
    9,193
    Login to Give a bone
    0

    Default Re: Insert list of block names in a txt file

    Have you tried renaming it with a .SCR file extension? That is what it looks like to me.
    If you have a technical question, please find the appropriate forum and ask it there.
    You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
    jUSt

  7. #7
    100 Club aharris's Avatar
    Join Date
    2003-08
    Location
    Lubbock, TX
    Posts
    106
    Login to Give a bone
    0

    Default Re: Insert list of block names in a txt file

    Quote Originally Posted by Opie
    Have you tried renaming it with a .SCR file extension? That is what it looks like to me.

    I think that's it!!! I knew it was simple...just after 5 years of drinking and ...well, never mind..

    Thanks!!!

Similar Threads

  1. Insert block using coordinates in a txt file
    By jmctamney in forum AutoLISP
    Replies: 10
    Last Post: 2017-02-09, 08:46 PM
  2. HELP......With Insert Block Lisp From Excel File
    By CADdancer in forum AutoLISP
    Replies: 1
    Last Post: 2013-06-25, 08:47 PM
  3. Replies: 2
    Last Post: 2012-08-08, 10:13 AM
  4. How to insert a DWG file as a block
    By Coolmo in forum Dot Net API
    Replies: 8
    Last Post: 2010-06-22, 01:36 AM
  5. Selecting a Title block from a list and insert as a Xref
    By dhurtubise in forum VBA/COM Interop
    Replies: 14
    Last Post: 2006-11-15, 05:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •