2023-04-20 01:08 AM - last edited on 2023-05-23 04:34 PM by Rubia Torres
Hello, I'm trying to create an electrical object symbol following the standards of our office, but when writing the 2D drawing script, the TEXT2 command is not respecting the created DEFINE STYLE directive. Does anyone have an idea of why this might be happening?
It's a very simple drawing that is almost ready, I just need to get the text to respect the created style so that the text stays within the 2D drawing.
Below is the line of code referring to the problem with TEXT2 and DEFINE STYLE.
!TESTE FORMA iExample = 4 | ALGUM ERRO EM DEFINE STYLE
if iExample = 4 then
circle2 0, 0, radius2
circle2 0, 0, radius1
HOTARC2 0, 0, radius2, 0, 360
DEFINE STYLE "3" "Calibri", 0.5, 5, 0
text2{3} 0,0, "TV"
endif
i'm sorry if i didn't post in the right forum.
Solved! Go to Solution.
2023-04-20 02:49 AM
------------------
The above define style and set style will work but i recommend below:
TEXT_SIZE = TEXT_SIZE *(100/GLOB_SCALE). : redefine the text size to suit the drawing scale
DEFINE STYLE "AAA" fonttype, TEXT_SIZE, 1, 0
SET STYLE "AAA"
TEXT2 0, 0, "TV"
*Recommend adding the parameters over set font type and size in the script. see the sample below.
2023-04-20 01:28 AM
2023-04-20 01:35 AM
I try to reload it to reflect the changes I made. There are times when you can't do this...
2023-04-20 02:49 AM
------------------
The above define style and set style will work but i recommend below:
TEXT_SIZE = TEXT_SIZE *(100/GLOB_SCALE). : redefine the text size to suit the drawing scale
DEFINE STYLE "AAA" fonttype, TEXT_SIZE, 1, 0
SET STYLE "AAA"
TEXT2 0, 0, "TV"
*Recommend adding the parameters over set font type and size in the script. see the sample below.
2023-04-20 03:38 PM
yessss, thanks so much!
how could i miss it...
but the obvious is only obvious when you know it right? lol
2023-04-21 03:15 AM
@Otavio Augusto wrote:
but the obvious is only obvious when you know it right? lol
Obviously. 🤣
Barry.