Author Topic: "tblnext" shows no group 3 for Textstyle  (Read 9555 times)

0 Members and 1 Guest are viewing this topic.

Peter2

  • Swamp Rat
  • Posts: 650
Re: "tblnext" shows no group 3 for Textstyle
« Reply #15 on: November 03, 2014, 11:47:45 AM »
Thanks to all, especially to MP.

I hope that I'm at the end of the tunnel now - I will report and post the final code fragment here in a few days.
Peter

AutoCAD Map 3D 2023 German (so some technical terms will be badly retranslated to English)
BricsCAD V23

rkmcswain

  • Swamp Rat
  • Posts: 978
Re: "tblnext" shows no group 3 for Textstyle
« Reply #16 on: March 26, 2022, 11:08:13 AM »
Have you tried inspecting the xdata for the STYLE (AcDbTextStyleTableRecord) entity?

e.g.:
Code: [Select]
(entget (tblobjname "style" "standard") '("*"))

Apologies if I overlooked it, but under what circumstances would the font name be stored in Xdata as opposed to just in group 3?

Thanks.

Lee Mac

  • Seagull
  • Posts: 12913
  • London, England
Re: "tblnext" shows no group 3 for Textstyle
« Reply #17 on: March 28, 2022, 07:24:49 PM »
Have you tried inspecting the xdata for the STYLE (AcDbTextStyleTableRecord) entity?

e.g.:
Code: [Select]
(entget (tblobjname "style" "standard") '("*"))

Apologies if I overlooked it, but under what circumstances would the font name be stored in Xdata as opposed to just in group 3?

I believe when the font name is not equal to the referenced font file, such as when using a TrueType font as opposed to a shape file, e.g.:
Code - Auto/Visual Lisp: [Select]
  1. _$ (elist (tblobjname "style" "standard"))
  2. (
  3.     (-1 . <Entity name: 7ffff703910>)
  4.     (0 . "STYLE")
  5.     (330 . <Entity name: 7ffff703830>)
  6.     (5 . "11")
  7.     (100 . "AcDbSymbolTableRecord")
  8.     (100 . "AcDbTextStyleTableRecord")
  9.     (2 . "Standard")
  10.     (70 . 0)
  11.     (40 . 1.0)
  12.     (41 . 1.0)
  13.     (50 . 0.0)
  14.     (71 . 0)
  15.     (42 . 1.0)
  16.     (3 . "calibri.ttf")
  17.     (4 . "")
  18.     (-3
  19.         (
  20.             "ACAD"
  21.             (1000 . "Calibri")
  22.             (1071 . 34)
  23.         )
  24.     )
  25. )

rkmcswain

  • Swamp Rat
  • Posts: 978
Re: "tblnext" shows no group 3 for Textstyle
« Reply #18 on: April 04, 2022, 11:44:02 AM »
Quote
Lee Mac.....
I have examined several of our drawings all from the same template, same text style, same font reference (AFAIK), and some have the TTF font name in group 3, and others have group 3 as an empty string and list the font in EED.
I can't see any rhyme or reason to it.
Hmmmmmm