TheSwamp

CAD Forums => CAD General => Topic started by: Jim C on April 11, 2016, 06:11:20 PM

Title: Use of field to show current plotted lineweight?
Post by: Jim C on April 11, 2016, 06:11:20 PM
Hello,

I'm wondering if someone has ever had the need to plot lineweights associated with a color, identifying the plotted lineweight within a text field?

I've got a color table displaying all 256 standard AutoCAD colors and would like to have a piece of text (with a field) within each hatch pattern that identifies the plotted lineweight for each color, all able to change while I create other plots by switching color tables (without having to change each piece of text with each color table)

Can anyone provide input on this problem?

Thanks in advance.

Jim.
Title: Re: Use of field to show current plotted lineweight?
Post by: BlackBox on April 11, 2016, 07:57:29 PM
I recreated this (http://www.theswamp.org/index.php?topic=43817.msg491083#msg491083) a few years back, but I didn't have a means by which to iterate the associated .CTB file programmatically, in order to cull the Color's assigned lineweight, etc. unfortunately... I was planning to export the .CTB to text/XML file, and then just use that, but never got around to doing so.

Cheers

(https://www.theswamp.org/index.php?action=dlattach;topic=43817.0;attach=24413;image)
Title: Re: Use of field to show current plotted lineweight?
Post by: BlackBox on April 11, 2016, 09:49:28 PM
So I did revisit this (before starting dinner), found a procedure to extract/decompile CTB, and wrote a LISP to populate the applicable lineweight values.

Posting from an iPhone whilst drinking a frosty beer, and grilling; will post those steps & code tomorrow.  :-D


Cheers
Title: Re: Use of field to show current plotted lineweight?
Post by: rvhwlc on April 12, 2016, 02:21:46 AM
Hello,

I'm wondering if someone has ever had the need to plot lineweights associated with a color, identifying the plotted lineweight within a text field?

I've got a color table displaying all 256 standard AutoCAD colors and would like to have a piece of text (with a field) within each hatch pattern that identifies the plotted lineweight for each color, all able to change while I create other plots by switching color tables (without having to change each piece of text with each color table)

Can anyone provide input on this problem?

Thanks in advance.

Jim.
Drop colors assigned to lineweights. just make every thing as Bylayer or Byobject and let lineweights be handled by the drawing itself. it is too much trouble managing 256 colors and lineweights instead just set the lineweight in the layer manager or the object itself and it's done. no more issues with standardizing colors anymore.
Title: Re: Use of field to show current plotted lineweight?
Post by: HasanCAD on December 19, 2017, 06:39:42 AM
So I did revisit this (before starting dinner), found a procedure to extract/decompile CTB, and wrote a LISP to populate the applicable lineweight values.

Posting from an iPhone whilst drinking a frosty beer, and grilling; will post those steps & code tomorrow.  :-D


Cheers
WOW I belive this Grilling is the longest Seince 2016.