extract basepoint

Discussion in 'AutoCAD' started by Oak3s, Nov 19, 2004.

  1. Oak3s

    Oak3s Guest

    i looked at the other post and couldnt get much. i wasnt sure where to post this either so i apologize if this is the wroing location.
    what i looking for is help in extracting the basepoint and putting that value into a txt file or an excel file. i dont have a clue how to do this. i looked into this on the web and the books i have. now im here. i would appreciate any help. thanks
    Jeremy
     
    Oak3s, Nov 19, 2004
    #1
  2. Oak3s

    Dann Guest

    If you are looking to write a lisp program to do this, look at dxf codes for
    blocks (dxf code 10)
    and the "open" lisp funtion to write to file.
     
    Dann, Nov 19, 2004
    #2
  3. Oak3s

    Oak3s Guest

    thanks for the reply

    Here's the pseudo code to what i am looking for.

    1. Get current BASE point
    .........save it in a variable
    2. Get current dwgname
    .........save it in a variable
    3. Export the information into a txt or excel file
    Drawing Number____|____Basepoint
    __ABC123.dwg______|______0,0,0__

    i would like this to be in a script. what i dont know how to do is the exporting part. the information i get, i dont know how to put that into a txt or a excel file.
    Jeremy
     
    Oak3s, Nov 19, 2004
    #3
  4. I think you're looking for the System Variable "INSBASE" (the insertion base
    point for the drawing if it's inserted into something else), rather than the
    dxf code 10 of a block as Dann suggested.
     
    Kent Cooper, AIA, Nov 19, 2004
    #4
  5. Oak3s

    Oak3s Guest

    someone helped me out. thanks for the help here.
     
    Oak3s, Nov 20, 2004
    #5
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.