2025-04-03
10:06 AM
- last edited on
2025-04-03
11:10 PM
by
Laszlo Nagy
Hello everyone,
I hope you're doing well! I’m working on a project in Archicad, and I want to create a table with an image (PNG, JPG, etc.) inside one of the table cells. I also need the image to be visible in the 2D view. How can I achieve this?
The code that I have tried:
table_width = 300
table_height = 200
rect2 0, 0, table_width, table_height
line2 0, 100, table_width, 100
line2 100, 0, 100, table_height
DEFINE STYLE "BigText" "Arial", 20, 5
SET STYLE "BigText"
text2 10, 180, "Tên Sản Phẩm"
text2 120, 180, "Mô tả"
PICTURE "Matsau.jpg", 10, 10, 100, 100Thank you in advance for your help!
Solved! Go to Solution.
2025-04-03 11:09 AM - edited 2025-04-03 11:09 AM
You still have the picture command wrong.
Try ... PICTURE2 name, x, y, mask
PICTURE2 "Matsau.jpg", 10, 10, 1
I think the image needs to be in the embedded library as I can't seem to add an image in my loaded library.
Barry.
2025-04-03 10:19 AM
In 2D script you will need PICTURE2 or PICTURE2{2}.
PICTURE on its own is for the 3D script.
Barry.
2025-04-03
10:27 AM
- last edited on
2025-04-03
11:11 PM
by
Laszlo Nagy
Thank you, Mr. Barry,
I have tried it but still cannot see the image. I have placed it into the Embedded Library, but it still doesn't work. Could you please assist me further?
2025-04-03 11:09 AM - edited 2025-04-03 11:09 AM
You still have the picture command wrong.
Try ... PICTURE2 name, x, y, mask
PICTURE2 "Matsau.jpg", 10, 10, 1
I think the image needs to be in the embedded library as I can't seem to add an image in my loaded library.
Barry.
2025-04-03
11:15 AM
- last edited on
2025-04-03
11:11 PM
by
Laszlo Nagy
Thank you sir
2025-04-03 11:19 AM
You still have the command wrong.
it is in the format name, x-size, y-size, mask.
PICTURE2 "demo.png", 10, 10, 1
Barry.
2025-04-03 11:37 AM - edited 2025-04-03 11:42 AM
Thank you sir, It's done