Developer forum
cancel
Showing results for 
Search instead for 
Did you mean: 

AC_TextStyle_1 strikethrough useless error

runxel
Mentor
If you don't want to use a full blown PARAGRAPH, since you're happy with TEXT2 and somebody uses the strike through option in the label.... you'll will get a "Facecode Value not in Range" error for using `AC_TextStyle_1` in DEFINE STYLE.

But – it still works. So why not remove the damn error, GS?
AC 24 [ger] | Win 10 | Developer of the GDL plugin for Sublime Text |
«Furthermore, I consider that Carth... yearly releases must be destroyed»
4 REPLIES 4

Barry Kelly
Moderator
What is the full DEFINE STYLE command you have used for 'AC_TextStyle_1' ?

Barry.

One of the forum moderators.
Versions 6.5 to 25
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Dell Precision 3510 - i7 6820HQ @ 2.70GHz, 16GB RAM, AMD FirePro W5130M, Windows 10

DGSketcher
Mentor
There is a similar thing with pen numbers in that the -1 value is available but can’t be used. I found setting a Values range limit in the Parameters script clears the pen from the selection grid. Is a range limit appropriate to your face styles ?
Apple iMac macOS Big Sur / AC24UKI (most recent builds)

runxel
Mentor
Barry wrote:
What is the full DEFINE STYLE command you have used for 'AC_TextStyle_1' ?
Nothing fancy, really.
define style "label_text_style" 	AC_TextFont_1, AC_TextSize_1*100/GLOB_SCALE, txt_anchor, AC_TextStyle_1
The GDL manual states, that the text style flag for subscript, superscript, and strikethrough only works with STYLE{2} – but at least strikethrough still works when set with STYLE. It only raises the error mentioned above.
AC 24 [ger] | Win 10 | Developer of the GDL plugin for Sublime Text |
«Furthermore, I consider that Carth... yearly releases must be destroyed»

Barry Kelly
Moderator
I just looked at the GDL manual and DEFINE STYLE only allows for bold, underline and italic in the face code values.
DEFINE STYLE{2} however includes extra values for superscript, subscript and strikethrough.

But I guess the problem is, DEFINE STYLE{2} doesn't include the anchor position.
And it says …
If the defined style is used with the TEXT2 command, size means character heights in millimeters, while the superscript, subscript and
strikethrough face_code values are not effective.
So I don't think there is a way around your dilemma - put up with the error message or change to use paragraphs.

But yes, it is strange (annoying) it does work, but gives you the error message.
This would be one to report to your Archicad support people.


Barry.

One of the forum moderators.
Versions 6.5 to 25
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Dell Precision 3510 - i7 6820HQ @ 2.70GHz, 16GB RAM, AMD FirePro W5130M, Windows 10

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!