See the top rated post in this thread. Click here

Results 1 to 8 of 8

Thread: Looking for a LISP routine to plot out a .CTB file with relevant information attached

  1. #1
    I could stop if I wanted to cadd4la's Avatar
    Join Date
    2001-12
    Location
    Newport Beach, CA
    Posts
    399
    Login to Give a bone
    0

    Default Looking for a LISP routine to plot out a .CTB file with relevant information attached

    Hello everyone,

    I am in need of a lisp file that will read the set .ctb file in the drawing, then draw a line for all the layer colors, as well as have text of the color name to the left of the line and text of the lineweight above the line. On a 8 1/2x11 sheet.

    Thanks for the help.

    Kyle C.

  2. #2
    Administrator rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Earth
    Posts
    9,805
    Login to Give a bone
    0

    Default Re: Looking for a LISP routine to plot out a .CTB file with relevant information attached

    It's not easy to cram 255 lines with text on a Letter sized sheet, and have it be legible.
    R.K. McSwain | CAD Panacea |

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

    Default Re: Looking for a LISP routine to plot out a .CTB file with relevant information attached

    Plus, AutoLISP cannot read the contents of CTB or STB files. Therefore, the lineweights information of each color cannot be read.
    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
    Administrator rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Earth
    Posts
    9,805
    Login to Give a bone
    0

    Default Re: Looking for a LISP routine to plot out a .CTB file with relevant information attached

    I think OP was talking about getting output like this, which is possible.
    In other words, to visually see the lineweights, not necessarily document the size in inches or mm.


    lw.png


    I read "text of the lineweight" to mean some text (the name of the color) printed at the lineweight of that color.

    You can't really do this however because the really thick lines would just make a blob of the text, so I just use TTF for the text in mine.
    Last edited by rkmcswain; 2016-04-07 at 04:47 PM. Reason: add more data
    R.K. McSwain | CAD Panacea |

  5. #5
    Certifiable AUGI Addict
    Join Date
    2001-03
    Location
    Tallahassee, FL USA
    Posts
    3,667
    Login to Give a bone
    0

    Default Re: Looking for a LISP routine to plot out a .CTB file with relevant information attached

    Quote Originally Posted by rkmcswain View Post
    I think OP was talking about getting output like this, which is possible.
    In other words, to visually see the lineweights, not necessarily document the size in inches or mm.


    lw.png


    I read "text of the lineweight" to mean some text (the name of the color) printed at the lineweight of that color.

    You can't really do this however because the really thick lines would just make a blob of the text, so I just use TTF for the text in mine.
    Could you attach that drawing?

    You can use Autocad CTB (or STB) online viewer to see it shown in a web page.

  6. #6
    I could stop if I wanted to cadd4la's Avatar
    Join Date
    2001-12
    Location
    Newport Beach, CA
    Posts
    399
    Login to Give a bone
    0

    Default Re: Looking for a LISP routine to plot out a .CTB file with relevant information attached

    Tom,

    Thanks, this will work.

    Cadd4la

  7. #7
    Administrator BlackBox's Avatar
    Join Date
    2009-11
    Posts
    5,719
    Login to Give a bone
    1

    Default Re: Looking for a LISP routine to plot out a .CTB file with relevant information attached

    This may help:

    Quote Originally Posted by BlackBox View Post
    A while back I took on a similar challenge, and ended up recreating a drawing to depict various CTB's, which may save you some effort... See the attachment in this old post; here's a small screen shot:



    Cheers
    "How we think determines what we do, and what we do determines what we get."

    Sincpac C3D ~ Autodesk Exchange Apps

    Computer Specs:
    Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000

  8. #8
    Certified AUGI Addict cadtag's Avatar
    Join Date
    2000-12
    Location
    Cairo - no, not Illinois
    Posts
    5,069
    Login to Give a bone
    0

    Default Re: Looking for a LISP routine to plot out a .CTB file with relevant information attached

    Here's a sheet I use for matching the pen weights to client requirements. This particular example is showing NavFac pen weights and color, and will plot properly only with the NavFac ctb from the Navy.

    As I deal with other client standards, I'll set up a similar sheet for their requirements. Kind of a PITA to do it manually, but with a small number of clients that require uniqe standards, it's acceptable.
    Attached Files Attached Files

Similar Threads

  1. New Plot Device - LISP Routine
    By techsupport.161645 in forum AutoLISP
    Replies: 1
    Last Post: 2009-01-09, 09:55 PM
  2. Replies: 2
    Last Post: 2007-05-11, 11:25 AM
  3. Is it possible to draw attached image via a LISP routine?
    By BRENDA_GZZ_GOMEZ in forum AutoLISP
    Replies: 6
    Last Post: 2007-04-16, 09:00 PM
  4. Replies: 6
    Last Post: 2006-08-08, 04:02 PM
  5. How to convert Plot Lisp routine to VBA
    By ian.cook in forum VBA/COM Interop
    Replies: 3
    Last Post: 2006-07-10, 07:02 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
  •