Author Topic: Use of field to show current plotted lineweight?  (Read 482 times)

0 Members and 1 Guest are viewing this topic.

Jim C

  • Mosquito
  • Posts: 5
Use of field to show current plotted lineweight?
« 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.

BlackBox

  • King Gator
  • Posts: 3736
Re: Use of field to show current plotted lineweight?
« Reply #1 on: April 11, 2016, 07:57:29 pm »
I recreated this 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


"Potential has a shelf life." - Margaret Atwood

BlackBox

  • King Gator
  • Posts: 3736
Re: Use of field to show current plotted lineweight?
« Reply #2 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
« Last Edit: April 11, 2016, 10:10:24 pm by BlackBox »
"Potential has a shelf life." - Margaret Atwood

rvhwlc

  • Newt
  • Posts: 153
Re: Use of field to show current plotted lineweight?
« Reply #3 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.