We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

GDL
About building parametric objects with GDL.
SOLVED!

Scale Bar Font

ArchiRoss
Participant

Hi,

 

 I am using ArchiCAD 26 and noticed that the font on all my scale bar library parts has changed to an odd font (an old typewriter type font). I don't recall ever changing it, and cannot see how to change it to a font of my choice - there doesn't seem to be an option for this in the library part settings.

 

Does anyone know how to change it?

 

Thanks,

Ross

 

Operating system used: Windows

1 ACCEPTED SOLUTION

Accepted Solutions
Solution

OK thanks.

I can see these objects have no control over the font used.

 

BarryKelly_0-1714120891203.png

 

If this is not how they normally look, all I can assume is you do not have the font installed on your machine.

 

To edit, select a placed object.

Press CTRL+SHIFT+O at the same time.

This will open the editor.

In the 2D script you should find a line that starts with "define style..."

The part I have circled probably has a font name in quotes - i.e. "Arial".

You can change that name to the actual font you want to use.

Then save and close the editor.

 

BarryKelly_1-1714121367545.png

 

 

This will change just that one object in your embedded library.

You will need to do the same for all of the other objects.

Then save them and load them in any other file that has these objects.

Or better still, save them out into a folder called "Office Library" (or similar) on your local hard drive or network server if you use one.

Now you can load that folder as a library in any file, instead of having them in the embedded library of just one file.

 

Barry.

 

 

One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11

View solution in original post

9 REPLIES 9
Lingwisyer
Guru

You should state the name of the scale bar object, and maybe which AC localisation you are using...

AC22-23 AUS 7000Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win10 | R5 2600 | 16GB | GTX1660

Hi,

 

I am in the UK, and the same font change has happened to all the scale bars in my library. These are all embedded library parts, which I did not make, but I cannot figure out why the font suddenly changed, or how to edit the library part to change it to something a bit more normal.

 

Any help most welcome.

You mean this scale object in the default library?

 

BarryKelly_0-1714113721136.png

 

If not, you will need to show us which one.

 

Barry.

One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11

Hi Barry,

 

 No, not that one, I think they must have been made by a former colleague, as they are embedded into my own cad template.

 

 Maybe my question is a more general one about how to edit a library part?

When you select that object, what does it show in 'Custom Settings' ?

 

The font shouldn't have changed unless you don't have the font that is was set for installed on your computer.

 

If the font is hard coded into the object, you will have to open the script to edit it.

It is hard to say exactly with out seeing your object, but in the 2D script there should be a 'DEFINE STYLE' command that sets the font.

 

Barry.

One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11

Hi Barry,

 

 The below is a screenshot of the object settings, with one of the offending objects highlighted on the underlying window on the right.

 

Screenshot 2024-04-26 081645.png

Solution

OK thanks.

I can see these objects have no control over the font used.

 

BarryKelly_0-1714120891203.png

 

If this is not how they normally look, all I can assume is you do not have the font installed on your machine.

 

To edit, select a placed object.

Press CTRL+SHIFT+O at the same time.

This will open the editor.

In the 2D script you should find a line that starts with "define style..."

The part I have circled probably has a font name in quotes - i.e. "Arial".

You can change that name to the actual font you want to use.

Then save and close the editor.

 

BarryKelly_1-1714121367545.png

 

 

This will change just that one object in your embedded library.

You will need to do the same for all of the other objects.

Then save them and load them in any other file that has these objects.

Or better still, save them out into a folder called "Office Library" (or similar) on your local hard drive or network server if you use one.

Now you can load that folder as a library in any file, instead of having them in the embedded library of just one file.

 

Barry.

 

 

One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11

What a star you are Barry!

 

That script change worked perfectly. Thank you very much.

Ross

Lingwisyer
Guru

In case management decideds to change the standard font, instead of inserting your desired font into the Define Style, you can add the parameter used to the Parameters Script, ensuring that there is no red cross next to it. This will present the option for the user to select the font in the object settings.

 

Lingwisyer_1-1714353499902.png

 

 

Ling.

 

AC22-23 AUS 7000Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win10 | R5 2600 | 16GB | GTX1660

Setup info provided by author