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

0 Members and 2 Guests are viewing this topic.

Jim C

  • Guest
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: 3770
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


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

BlackBox

  • King Gator
  • Posts: 3770
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 »
"How we think determines what we do, and what we do determines what we get."

rvhwlc

  • Guest
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.

HasanCAD

  • Swamp Rat
  • Posts: 1420
Re: Use of field to show current plotted lineweight?
« Reply #4 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.