Objects
General Plan Symbols
Construction
3-Punkte-Kreis
Aufsetzlinie ermitteln.GSM
Ellipse pro.GSM
Fläche.GSM
Kollerktorabstand.GSM
Kreistangente.GSM
Mauerwerksmaß.GSM
N-Eck.GSM
PolygonCalc.GSM
Supershape.GSM
Drafting
Dämmung.GSM
DrawingFrame.GSM
Klammer.GSM
Messen.GSM
Dichtungslinie.GSM
Nordpfeil.GSM
PlanIdentifier.GSM
Poly Measure.GSM
Präzisionsmaß.GSM
Revisioning.GSM
TheLayout.GSM
Zeichnungsrand.GSM
Labels
Bauteilbeschriftung.GSM
Höhenkote.GSM
PrecisionTester.GSM
U-Wert Etikett.GSM
Treppenschrift.GSM
Wandaufbau_MSB.GSM
XY location.GSM
Z location.GSM
Markers
Defpoint.GSM
FT marker 90 pro
FT Marker 14 pro
Höhenmarker
Indexmarker
Stamps
Gebäudezonen DIN 18599.GSM
Oberflächenstempel
Text + Symbols
Checkboxlist.GSM
FloorName.GSM
Höhenlinienschrift.GSM
Nummerierung.GSM
Schattenschrift.GSM
Sonnensymbol.GSM
Strukturpfeil.GSM
Winkelsymbol.GSM
Wohnflaeche_81_2.GSM
Hover frame.GSM
Openings
Breakthroughs
Wanddurchbruch.GSM
Wandschlitz.GSM
Bodendurchbruch Symbol 19 plus
Doors
Schiebeladen.GSM
Stahlzarge.GSM
Zargentür.GSM / Blockrahmentür.GSM
BIM-all-doors
Windows
Bogenfenster.GSM
Fenster 2D.GSM
Flügelfenster.GSM
Optionenfenster.GSM
Construction
Beams + lintels
Gotischer Bogen.GSM
SEO-Sturz.GSM
Ceiling
Deckenkante.GSM
Schichtenbauteil 2D.GSM
Unterdecke.GSM
Column + Pedestal
Gedrehte Säulen.GSM
Konischer Pfeiler.GSM
Kreisquadratur.GSM
Concrete
StB Fertigteilplatte.GSM
Connecting component
Befestigungsmatrix.GSM
Schraube.GSM
Facing and paneling
Fassadentafel.GSM
Groove + joint
Wandfuge.GSM
Railing + Balustrade
Geländerfüllung.GSM
Gründerzeitgeländer.GSM
MPT Brüstung.GSM
Muffenpfosten.GSM
Ramps
Rampmaker
Roof + dormer
Unterschlag.GSM
Shaded devices
Stairs
Ansichtstreppe
EdgeStair.GSM
Einschubtreppe.GSM
Treppensymbol.GSM
Steel construction
TheProfile.GSM
Wall elements
Lisene.GSM
Trockenbau-Unterkonstruktion.GSM
Versatz.GSM
Wood + framing
Lattenstapel.GSM
Schalung.GSM
Stulpschalung.GSM
Furniture
Bathroom
Duschfeld.GSM
Cabinets + Shelves
Ivar.GSM
Schrank allgemein.GSM
Fittings
TARA®
Kitchen
Schnelle Küche.GSM
Shops
Einkaufswagen.GSM
MEP / HSLE
Installation
Installationsschacht.GSM
Installationsstrang.GSM
Revisionsklappe.GSM
Light
Leuchtensymbol.GSM
Outdoor
Park + Garden
Böschung.GSM
Fountain.GSM
Pflastersteine.GSM
Rasengittersteine.GSM
Water.GSM
Persons
Silhouette.GSM
Street + Traffic
Fahrbahnmarkierung.GSM
Feuerwehrzufahrt.GSM
Kerb + parking
Parkplatz, gebogen.GSM
Richtungspfeile.GSM
Zebrastreifen.GSM
Street furniture
Fahne.GSM
Specialities
Animation
TheAnt.GSM
Construction
Antonio.GSM
CirclePacking.GSM
Tentmaker.GSM
Treppenchecker.GSM
Mixed + Off topic
Bitmap70.GSM
Billboard.GSM
Kugelbahn.GSM
Moebius.GSM
Projektor.GSM
Rumbletext.GSM
Scaleculator.GSM
Zahnrad.GSM
Modeler + Shaper
Höhenschnitt.GSM
Wallcutter.GSM
PointClodShaper.GSM
Primitives
Flexi Tube.GSM
EinfachStrebe.gdl
Knie.GSM
Netz.GSM
Würfel.GSM
Transformation
Skewer.GSM
Various
Facility management
FacilityManagment.GSM
Urban development
Abstandsfläche.GSM
Dachaufsicht.GSM
Macros
Construction elements
Hyperbolischer Paraboloid.gsm
Polygonmania.GSM
The Grid.GSM
Complex elements
Ast.GSM
QR-Code.GSM
Graphic + layout
Print Line.GSM
PrintBlock.GSM
Vektorschrift.GSM
Vektorzahlen.GDL
Internal+structural
Autotext.GSM
Babelfish.GSM
DatumPlausibiityCheck.GSM
File allocator.GSM
OpenLibraryGlobals.GSM
XML-Bitmap-Generator.GSM
Mathematic + geometry
Curve.GSM
Koeffizientenmatrix.GSM
LINE2cutlined.GSM
LineLineIntersection.GSM
LostInSpace.GSM
Projects
2D Documentation Toolkit
2D Drafting Toolkit
ArchiCARD Bibliothek
Techniksymbole
The Layout Toolkit
Theory
Vector analysis
Perpendicular vector
Algebra + Trigonometry
Arc and secant
Handrail problem
Intersection of two lines
Intersection of parallels
Rounded ring segment
Tangential arcs
Algorithms
Alphabetizing
Automatic north direction
Binary en-/decoding
Random values in array
Sort buffer
Fragments
ArchiCAD version
Change Case
Check platform
Compare values
Convert deciamal notation
Dimension Strings
Macro run detection
Object animation
Scale conversion
Solid and empty fills
String Replacement
Fragments - User Interface
Initialisation
Parameter Infields
Fragments - 2D / 3D
Background colour
Hotspots - moving free text
Projection
Object rotation
GDL and structure
parameter and variables
heights and stamps
Tools
Editors
GDLnucleus - The Object Fission & Fusion Tool
GDLnucleus - MacOs Version
GDLnucleus - Windows Version
The GDL nucleus - Object development environment
Converters
Object Integrated Bitmaps
Copy Potection
Information
News
Licenses
Legal / Impressum
Credits
Authors
Frank Beister
Jochen Sühlo
Frank Chin
Site
Web
Search
Login
|
You are here:
Theory
Fragments - Parameter script
Font List
Problem
For text output it is necessary to define a parameter to select the font. There is no special parameter type for this in GDL. You have to script it.
Solution
To avoid input errors you can create a list by the VALUE command. Up to ArchiCAD 9 you have to hard code this. ArchiCAD 10+ provides a REQUEST to get a complete list of all installed fonts. Unfortunatly on windows machines you get a list including all language packs installed either. The list becomes very large.
The following script provides a list for objects in ArchiCAD 9 and below and filters the requested list in ArchiCAD 10+ and cuts off the font extensions.
If you use always the same font name parameter in your objects parameter lists, you can add the script or the CALL to this .GDL-script into your
MASTER_GDL.GDL
, which will be loaded then each time you start a project file. So any object containingthis parameter has instant access to the value list.
Master- or Parameter Script (long version)
!»»» Definition of a standard fontname list
! in parameter "Zeichensatz"
!»»» Ermittlung, ob als SUB-GDL aufgerufen (geCALLed)
mkr=" " : sts=
REQUEST
("
NAME_OF_MAIN
","",mkr)
gdl=
REQ
("
GDL_VERSION
")
IF
gdl<1.516
THEN
!»» Version for ArchiCAD 9-
IF
STRSTR
(mkr,"MASTER_GDL")
THEN
! … Basic settings in Master_GDL.GDL
VALUES
"Zeichensatz" "«master_gdl»",
"Arial","Arial Narrow","Avant Garde",
"Centoury Schoolbook","Chicago","Courier New",
"Futura Lt BT Westlich","Futura LtCn BT Westlich",
"Futura Md BT Westlich","Geneva",
"Helvetica","N Helvetica Narrow",
"New York","Tahoma","Verdana",
CUSTOM
ELSE
! … Individual called settings
VALUES
"Zeichensatz" "Arial Westlich","Arial","Arial Narrow",
"Avant Garde","Centoury Schoolbook","Chicago","Courier New",
"Geneva","Helvetica","N Helvetica Narrow",
"New York","Tahoma","Verdana",
CUSTOM
ENDIF
END
ELSE
!»» Version for ArchiCAD 10+
DIM
fontnames[],exclude[]
! … Define font names (/extensions) to extinguish
exclude[1]='Chinesisch'
exclude[2]='Türkisch'
exclude[3]='Hebräisch'
exclude[4]='Baltisch'
exclude[5]='Kyrillisch'
exclude[6]='Thai'
exclude[7]='Griechisch'
exclude[8]='Mitteleuropäisch'
exclude[9]='Arabisch'
exclude[10]='Japanisch'
exclude[11]='Hangul'
! … can be continued
excludeN=
VARDIM1
(exclude)
! … Read all fonts in system
fontN=
REQUEST
("
FONTNAMES_LIST
", "", fontnames)
! …same as: fontN=
VARDIM1
(fontnames)
! … Extension, which has always to be cut off
cutoff="Westlich"
! … Reduce list
DIM
fontnames2[]
j=0
FOR
i=1
TO
fontN
t=1
! … is fontname on black list?
FOR
k=1
TO
excludeN
IF
STRSTR
(fontnames[i],exclude[k])
THEN
t=0
NEXT
k
IF
t
THEN
j=j+1
! … cut off extension
t=
STRSTR
(fontnames[i]," "+cutoff)
IF
t<=1
THEN
t=
STRLEN
(fontnames[i])+1
fontnames2[j]=
STRSUB
(fontnames[i],1,t-1)
ENDIF
NEXT
i
! … output to value list
IF
STRSTR
(mkr,"MASTER_GDL")
THEN
! … Basic settings in Master_GDL.GDL
IF
fontN
THEN
VALUES
"Zeichensatz" "«master_gdl»",fontnames2,
CUSTOM
ELSE
! … Individual called settings
IF
fontN
THEN
VALUES
"Zeichensatz" fontnames2,
CUSTOM
ENDIF
ENDIF
Parameter Script (inline object usage)
!»»» Definition of a standard fontname list
! in parameter "Zeichensatz"
DIM
fontnames[],exclude[] fontnames2[]
gdl=
REQ
("
GDL_VERSION
")
IF
gdl<1.516
THEN
!»» Version for ArchiCAD 9-
VALUES
"Zeichensatz" "Arial","Arial Narrow","Avant Garde",
"Centoury Schoolbook","Chicago","Courier New",
"Futura Lt BT Westlich","Futura LtCn BT Westlich",
"Futura Md BT Westlich","Geneva",
"Helvetica","N Helvetica Narrow",
"New York","Tahoma","Verdana",
CUSTOM
ELSE
!»» Version for ArchiCAD 10+
! … Define font names (/extensions) to
extinguish
exclude[1]='Chinesisch'
exclude[2]='Türkisch'
exclude[3]='Hebräisch'
exclude[4]='Baltisch'
exclude[5]='Kyrillisch'
exclude[6]='Thai'
exclude[7]='Griechisch'
exclude[8]='Mitteleuropäisch'
exclude[9]='Arabisch'
exclude[10]='Japanisch'
exclude[11]='Hangul'
! … can be continued
excludeN=
VARDIM1
(exclude)
! … Read all fonts in system
fontN=
REQUEST
("
FONTNAMES_LIST
", "", fontnames)
! … Extension, which has always to be cut off
cutoff="Westlich"
! … Reduce list
j=0
FOR
i=1
TO
fontN
t=1
! … is fontname on black list?
FOR
k=1
TO
excludeN
IF
STRSTR
(fontnames[i],exclude[k])
THEN
t=0
NEXT
k
IF
t
THEN
j=j+1
! … cut off extension
t=
STRSTR
(fontnames[i]," "+cutoff)
IF
t<=1
THEN
t=
STRLEN
(fontnames[i])+1
fontnames2[j]=
STRSUB
(fontnames[i],1,t-1)
ENDIF
NEXT
i
! … output to value list
IF
fontN
THEN
VALUES
"Zeichensatz" fontnames2,
CUSTOM
ENDIF
Frank Beister 2010
Terms Of Use
Privacy Statement
Um unsere Webseite für Sie optimal zu gestalten und fortlaufend verbessern zu können, verwenden wir nur
essenzielle
Cookies.
Durch die weitere Nutzung der Webseite stimmen Sie der Verwendung von Cookies zu.
Weitere Informationen zu Cookies erhalten Sie in unserer
Datenschutzerklärung
✖