cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Starting August 6, 2024, TLS 1.2 will be the minimum required protocol version for Graphisoft products and services that require an online connection. Learn more…
Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

Material on complex profile wall

Mats_Knutsson
Advisor
Hello GDL-ers,

I was trying to make a simple gdl object by saving the 3D model and the add a material parameter. I've done this a dozen times but tonight i got stuck on complex profile wall. The cpw is in the code basically a revolve and it has only one material parameter but nothing happens when I replace the original autoscripted material parameter with my own.
Pls help.

Thanks,
Mats
AC 25 SWE Full

HP Zbook Fury 15,6 G8. 32 GB RAM. Nvidia RTX A3000.
4 REPLIES 4
Laszlo Nagy
Community Admin
Community Admin
Post the 3D Script here so we can check it out.
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
Mats_Knutsson
Advisor
laszlonagy wrote:
Post the 3D Script here so we can check it out.
Of course. It's an autoscripted object.
The material definition aaaa is my material but it only applies to the "intestants" of the pipe and not the surfaces. There should be a material definition for each line in the 2D profile that is revolved. When I do a straight pipe I get it right with autoscripted ----ind(material,"Färg-07"),----

Mats

revolve{2} 9, 0, 143.6102553225, 444, aaaa,
-0.003645035534536, 0.6587998942228, 1, 18,
-0.01244492975734, 0.6624449297573, 1, 18,
-0.02124482398015, 0.6587998942228, 1, 18,
-0.02488985951469, 0.65, 1, 18,
-0.02124482398015, 0.6412001057772, 1, 18,
-0.01244492975734, 0.6375550702427, 1, 18,
-0.003645035534536, 0.6412001057772, 1, 18,
-0, 0.65, 1, 18,
-0.003645035534536, 0.6587998942228, 2, 18
AC 25 SWE Full

HP Zbook Fury 15,6 G8. 32 GB RAM. Nvidia RTX A3000.
Laszlo Nagy
Community Admin
Community Admin
Mats_Knutsson wrote:
laszlonagy wrote:
Post the 3D Script here so we can check it out.
Of course. It's an autoscripted object.
The material definition aaaa is my material but it only applies to the "intestants" of the pipe and not the surfaces. There should be a material definition for each line in the 2D profile that is revolved. When I do a straight pipe I get it right with autoscripted ----ind(material,"Färg-07"),----

Mats

revolve{2} 9, 0, 143.6102553225, 444, aaaa,
-0.003645035534536, 0.6587998942228, 1, 18,
-0.01244492975734, 0.6624449297573, 1, 18,
-0.02124482398015, 0.6587998942228, 1, 18,
-0.02488985951469, 0.65, 1, 18,
-0.02124482398015, 0.6412001057772, 1, 18,
-0.01244492975734, 0.6375550702427, 1, 18,
-0.003645035534536, 0.6412001057772, 1, 18,
-0, 0.65, 1, 18,
-0.003645035534536, 0.6587998942228, 2, 18
The first Material parameter applies to the two end surfaces.
Then each segment has its own material definition. That is the 4th parameter, according to the GDL Manual.
I modified all 18s to aaaa.
revolve{2} 9, 0, 143.6102553225, 444, aaaa,
-0.003645035534536, 0.6587998942228, 1, aaaa,
-0.01244492975734, 0.6624449297573, 1, aaaa,
-0.02124482398015, 0.6587998942228, 1, aaaa,
-0.02488985951469, 0.65, 1, aaaa,
-0.02124482398015, 0.6412001057772, 1, aaaa,
-0.01244492975734, 0.6375550702427, 1, aaaa,
-0.003645035534536, 0.6412001057772, 1, aaaa,
-0, 0.65, 1, aaaa,
-0.003645035534536, 0.6587998942228, 2, aaaa
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
Mats_Knutsson
Advisor
laszlonagy wrote:
Mats_Knutsson wrote:
laszlonagy wrote:
Post the 3D Script here so we can check it out.
Of course. It's an autoscripted object.
The material definition aaaa is my material but it only applies to the "intestants" of the pipe and not the surfaces. There should be a material definition for each line in the 2D profile that is revolved. When I do a straight pipe I get it right with autoscripted ----ind(material,"Färg-07"),----

Mats

revolve{2} 9, 0, 143.6102553225, 444, aaaa,
-0.003645035534536, 0.6587998942228, 1, 18,
-0.01244492975734, 0.6624449297573, 1, 18,
-0.02124482398015, 0.6587998942228, 1, 18,
-0.02488985951469, 0.65, 1, 18,
-0.02124482398015, 0.6412001057772, 1, 18,
-0.01244492975734, 0.6375550702427, 1, 18,
-0.003645035534536, 0.6412001057772, 1, 18,
-0, 0.65, 1, 18,
-0.003645035534536, 0.6587998942228, 2, 18
The first Material parameter applies to the two end surfaces.
Then each segment has its own material definition. That is the 4th parameter, according to the GDL Manual.
I modified all 18s to aaaa.
revolve{2} 9, 0, 143.6102553225, 444, aaaa,
-0.003645035534536, 0.6587998942228, 1, aaaa,
-0.01244492975734, 0.6624449297573, 1, aaaa,
-0.02124482398015, 0.6587998942228, 1, aaaa,
-0.02488985951469, 0.65, 1, aaaa,
-0.02124482398015, 0.6412001057772, 1, aaaa,
-0.01244492975734, 0.6375550702427, 1, aaaa,
-0.003645035534536, 0.6412001057772, 1, aaaa,
-0, 0.65, 1, aaaa,
-0.003645035534536, 0.6587998942228, 2, aaaa


Ahhh!
Beautiful! Thank you very much!
I wrongly assumed the 18 was a statuscode for display. I should have checked the manual before.
Mats
AC 25 SWE Full

HP Zbook Fury 15,6 G8. 32 GB RAM. Nvidia RTX A3000.