How do i change materials in GDL script?
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2009-03-09
11:49 AM
- last edited on
‎2023-05-24
11:57 AM
by
Rubia Torres
‎2009-03-09
11:49 AM
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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2009-03-09 03:04 PM
‎2009-03-09
03:04 PM
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-Ac28
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac28
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2009-03-10 09:28 PM
‎2009-03-10
09:28 PM
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?
What product range are you creating?
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2009-03-17 10:53 AM
‎2009-03-17
10:53 AM
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.
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.