change value in file

Discussion in 'AutoCAD' started by nalsur8, Apr 6, 2004.

  1. nalsur8

    nalsur8 Guest

    this below some of content of my file config.dim (text format)
    when i run the routine the program search for the dim and find this
    file and make default my problem is each time i run i need to modify
    some of text in this file
    how to write small routine to modify this file using
    findfile "r" "w"...
    =====================================================
    :5 - Color 5 - blue - bore
    CB_ - Front char_ Back char

    :6 - Color 6 - magenta - Fine bore
    FBT_ - Front char_ Back char

    :1 - Color 1 - white/black - special
    DT%%C3,W/C_+0.005/S_ - Front char_ Back char

    :8 - Color 8 - off white/black - special
    MILL%%C2,W/C_TO SIZE, - Front char_ Back char <<===== only this text need
    to change

    :9 - Color 9
    DT_ - Front char_ Back char

    :10 - color 10
    DT_ - Front char_ Back char
     
    nalsur8, Apr 6, 2004
    #1
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.