Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

Master GDL Script - Define Material

Anonymous
Not applicable
I'm trying to find some answers about Define Material in Master GDL Script.

I want to have a Master GDL Script that will add materials to the library when loaded with the models in the container, the user will not have to do anything but load the library to the project. I've found some information about defining the materials by my own by coding it but there must be a more easy way to do it!?

What i'm looking for is a way to export my material to a code that i can add in my Master script as a code line.

Example of the code

DEFINE TEXTURE "Texture104" "hag_space", 0.07, 0.07, 513, 90

DEFINE MATERIAL "HAG Space" 20,
0.858824, 0.858824, 0.858824,
0.9, 0.88, 1, 0.5, 1.8, 0,
1, 1, 1,
0, 0, 0,
0, 0, -1,
IND(TEXTURE, "Texture104")



// Johnzon
11 REPLIES 11
Joachim Suehlo
Advisor
Use the Special Menu from ArchiCAD, with which you can export Master.gdl files from 3D windows which contain all the materials you have defined in ArchiCAD (and can be found in the attributes).

See: http://www.archicadwiki.com/Special%20Menu
Joachim Suehlo . AC12-27 . MAC OSX 13.5 . WIN11
GDL object creation: b-prisma.de
Anonymous
Not applicable
Than You Joachim, just what I was looking for.
tsturm
Newcomer
Joachim wrote:
Use the Special Menu from ArchiCAD, with which you can export Master.gdl files from 3D windows which contain all the materials you have defined in ArchiCAD (and can be found in the attributes).

See: http://www.archicadwiki.com/Special%20Menu
this link not longer works to the Special Menu. Please, can you update it?
Terrence Sturm, Architect
_______________
MBP OSX 10.15.4 Quad Core Intel i7 2.2hz
AC 17 build 5019
AC 22 build 7000
AC 23 build
AC 24 build 5000
Laszlo Nagy
Community Admin
Community Admin
Looks like there is no such page in ArchiCADWiki anymore.
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac27
Joachim Suehlo
Advisor
The last source about the special menu, I found, is here:

www.graphisoft.com/ftp/techsupport/documentation/developer_docs/BasicLibraryDoc/15/LibDevGuide/TechnicalStandards.html
Joachim Suehlo . AC12-27 . MAC OSX 13.5 . WIN11
GDL object creation: b-prisma.de
Laszlo Nagy
Community Admin
Community Admin
Or even more precisely:

http://www.graphisoft.com/ftp/techsupport/documentation/developer_docs/BasicLibraryDoc/15/LibDevGuid...

That's a good source, it tells you how to enable the Special menu commands on both platforms.
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac27
tsturm
Newcomer
I found that resource this morning. I have since downloaded the Pref Setter application. I have gone into the preference file. I have found the Special Menu. I have toggled it from false to true. I have saved the changed file. Yet I do not get the Special Menu among the menus when I start up AC. I then go the Work Enviroment to add the menu. It is not there among the other menus. I have trashed the previous plist file and done it all again. Still no Special Menu at the top. I think some how, today will just be one of those days.
Terrence Sturm, Architect
_______________
MBP OSX 10.15.4 Quad Core Intel i7 2.2hz
AC 17 build 5019
AC 22 build 7000
AC 23 build
AC 24 build 5000
Anonymous
Not applicable
Hello,

Activating the Special menu in the preferences does not create
a menu, it just makes the special menu commands visible in the
work environment settings.

In the work environment settings browse the command list by theme - the special menu commands should be there in a folder named '60 Special'.

From there you can add them to a new or an existing menu as you wish.

Hope this helps.
special.png
tsturm
Newcomer
Thank you Juda, I was missing the location of the theme for the special menu. I was looking in the list of menus and commands. Off to update several library sets, now that I can place the whole lot of them on the screen at once.

Cheers
Terrence Sturm, Architect
_______________
MBP OSX 10.15.4 Quad Core Intel i7 2.2hz
AC 17 build 5019
AC 22 build 7000
AC 23 build
AC 24 build 5000