cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
2024 Technology Preview Program

2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations

GDL
About building parametric objects with GDL.
SOLVED!

Pictures into a GDL object

Ingolf
Advocate

I would like to place a picture (a simple icon) on a surface on a Block in GDL. I have converted a picture to GSM by saving an Archicad-file with this (sole) picture as GSM. But from here I am stuck. Is it at all possible to place a picture on a surface on a GDL-made object?

Ingolf Sundfør, Bricklayer, Author of several Real Life Problem Solving Books for Archicaddicts in Norway.
PC/i7/W11/ArchiCAD 6.5-27
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Jochen Suehlo
Advisor

An example would be:

BLOCK A, B, zzyzx

ADD 0.25, -0.001,  0.25
ROTx 90
PICTURE "BERGMANN_001.png", 0.5, 0.5, 1 + 2
DEL 2

in the 3D-Script.
You could also use the picture object in the Archicad library and drag it to the object, where it should appear. 

Jochen Suehlo . AC12-27 . MAC OSX 14.4 . WIN11
GDL object creation: b-prisma.de

View solution in original post

4 REPLIES 4
Jochen Suehlo
Advisor

There are 2 different ways to do this:

a) use an image as texture for a material

b) use the PICTURE command

attached find an object that uses method a)

Jochen Suehlo . AC12-27 . MAC OSX 14.4 . WIN11
GDL object creation: b-prisma.de

Dear Joachim

 

Thank you for a really fast answer 😊  I am able to use method A. But I need to use method B if that may help me to put the icon on any surface exactly where I want it. I have searched; https://gdl.graphisoft.com/reference-guide/elements-for-visualization#PICTURE_gdlcommand

But I am in the dark on how to place the picture into the GDL-editor in Archicad.

Ingolf_0-1698178926652.png

 

Ingolf Sundfør, Bricklayer, Author of several Real Life Problem Solving Books for Archicaddicts in Norway.
PC/i7/W11/ArchiCAD 6.5-27
Solution
Jochen Suehlo
Advisor

An example would be:

BLOCK A, B, zzyzx

ADD 0.25, -0.001,  0.25
ROTx 90
PICTURE "BERGMANN_001.png", 0.5, 0.5, 1 + 2
DEL 2

in the 3D-Script.
You could also use the picture object in the Archicad library and drag it to the object, where it should appear. 

Jochen Suehlo . AC12-27 . MAC OSX 14.4 . WIN11
GDL object creation: b-prisma.de
Ingolf
Advocate

Thank you SO much! 😀 That worked very well.

BLOCK 0.8, 0.8, 0.96
ADD 0.15, -0.001,  0.25
ROTx 90
PICTURE "LEGO_ikon3.png", 0.5, 0.5, 1 + 2
DEL 2
ADD 0.4, 0.4, 0.96
CYLIND 0.16, 0.24
DEL 2

 

Ingolf_0-1698244456548.png

 

Ingolf Sundfør, Bricklayer, Author of several Real Life Problem Solving Books for Archicaddicts in Norway.
PC/i7/W11/ArchiCAD 6.5-27