cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How do i change materials in GDL script?

I am in the process of creating a product range in GDL by importing SketchUp models and then changiing the perameters in the 3D script window.

I know how to change the materials for all teh components and how to create new perameters to change that material.

What I am wanting to do is enter a single line of script to overwrite all material changes. this will mean I do not have to scroll through thousands of lines to change the materials in all the object components.

Can anyone suggest the right script to overwrite other materials?
3 Replies 3
Laszlo Nagy
Community Admin
Community Admin
Can't you use the find and replace text command of the Edit menu?
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-Ac29
Anonymous
Not applicable
i agree. just set up a parameter then use find and replace in the 3d script to replace the "material_name" with the parameter you have created.

What product range are you creating?
Anonymous
Not applicable
Editing complex GDL is easier in MS Word, so just copy it into a DOC file, switch and edit anything you would like, then paste it back to GDL.

Relating to the subject - what if I parametrically defined all materials (switching 3D studio pens to "material xy" for complex meshes, yet of the 6 materials (in this specific case) it only works for 5, leaving one "undefined"? Is there any way to define all undefined as a certain material? Of course I woud prefer not to look through 3000 pages of GDL data to find the missing components.

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!