PDA

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



cadd4la
2007-04-30, 05:05 PM
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.

rkmcswain
2016-04-07, 02:35 PM
It's not easy to cram 255 lines with text on a Letter sized sheet, and have it be legible.

Opie
2016-04-07, 04:34 PM
Plus, AutoLISP cannot read the contents of CTB or STB files. Therefore, the lineweights information of each color cannot be read.

rkmcswain
2016-04-07, 04:46 PM
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.


103290


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.

Tom Beauford
2016-04-07, 05:59 PM
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.


103290


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 (http://www.xcad.ch/tests/ctbviewer.php) to see it shown in a web page.

cadd4la
2016-06-10, 09:13 PM
Tom,

Thanks, this will work.

Cadd4la

BlackBox
2016-06-11, 06:19 AM
This may help:



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 (http://www.theswamp.org/index.php?topic=43817.msg491083#msg491083); here's a small screen shot:




http://www.theswamp.org/index.php?action=dlattach;topic=43817.0;attach=24413;image



Cheers

cadtag
2016-06-17, 01:13 PM
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.