txt to dwg points

Discussion in 'AutoCAD' started by hmsilva, Feb 21, 2005.

  1. hmsilva

    hmsilva Guest

    Hello there

    is there a way with a lisp rotine to read a txt point file
    an draw a 3d point with the "Z" text?

    The file is rotten like this

    1 -102225,125 -224225,457 45,38
    2 -102457,465 -224235,653 45.88
    ...

    TIA

    Henrique
     
    hmsilva, Feb 21, 2005
    #1
  2. hmsilva

    R.K. McSwain Guest



    Yes
     
    R.K. McSwain, Feb 21, 2005
    #2
  3. hmsilva

    hmsilva Guest

    Thanks to R.K. McSwain...
     
    hmsilva, Feb 21, 2005
    #3
  4. hmsilva

    trexx Guest

    Henrique
    Using the american style of "." for decimal fractions ..First, try from the
    command line:

    point
    -102225.125,-224225.457,45.38

    If the 3D point is drawn on the active layer then use a flat file editor
    like kedit and make a script file. which will look like this (note that
    there is a space after each point command). Also make sure that there are no
    spaces between the numbers as Acad interprets these as an "Enter" from the
    keyboard...

    point -102225.125,-224225.457,45.38
    point -102457.465,-224235.653,45.88
    ..
    ..
    ..

    Then save the file with an .scr extention and from the command line type:

    script

    enter the script file name and Presto, all of your points are in Acad!
    Remember you can always use the undo command after a script to keep refining
    your
    efforts.

    REX
     
    trexx, Feb 21, 2005
    #4
  5. hmsilva

    hmsilva Guest

    Thanks...

    I was trying to import a txt point file with thousands of points...
    so it was easy to me a lisp file that can import directly the file to de dwg and print the point and the position in Z text...

    Any ideas?

    Thanks to all future responses.

    Regards

    Henrique
     
    hmsilva, Feb 21, 2005
    #5
  6. hmsilva

    R.K. McSwain Guest

    Sorry, but:

    A) You asked if it could be done, nothing more.

    B) Post the code you have so far. Although some people may have time to
    write routines for posters such as yourself, this is generally a help
    forum, not a "Here is my problem, give me a free complete solution" forum.
     
    R.K. McSwain, Feb 21, 2005
    #6
  7. hmsilva

    hmsilva Guest

    Sorry but my english is not very good...

    My code was quite working and i only
    kneads some ideas to finalize de code..
    Now is working good...

    Thanks
     
    hmsilva, Feb 21, 2005
    #7
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.