Importing CSV data into Blocks??

Discussion in 'AutoCAD' started by yesby, Jul 22, 2003.

  1. yesby

    yesby Guest

    If I create a block XYZ that consists of a point with three attributes
    attached to it, tagged PT, ELEV and DESC, is there a way to insert instances
    of that block automatically by reading a comma-delimited text file...line by
    line.
    For example, if the text file contains,

    10,5123456.453,234586.456,45.283,IP
    11,5123499.283,234588.211,40.475,IP
    (and so on)

    is there a way to;
    - read the first line
    - insert the block XYZ at insertion point (5123456.453,234586.456,45.283)
    - assign 10 to tag PT
    - assign 45.283 to tag ELEV
    - assign IP to tag DESC

    and so on.

    Thanks
     
    yesby, Jul 22, 2003
    #1
  2. Post email to send file to:
     
    William Salling, Jul 22, 2003
    #2
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.