Custom materials usage and import
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2023-11-07
10:45 AM
- last edited on
‎2024-09-17
01:20 PM
by
Doreena Deng
Hello all,
How can we import a custom material /texture for walls and use the custom material through Add-On code? Is it possible to simply provide the URL of the texture?
Update -> Have added a screen shot of the custom image import for materials that I mentioned above.
Thank you,
Kency
Solved! Go to Solution.
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2023-11-07 08:10 PM
You can do it with the API, but you need to implement a couple of steps to achieve the final result:
- Move the texture file to the embedded library (url reference doesn't work).
- Create a Surface attribute that references the texture file from the embedded library.
- Apply the created Surface attribute on the corresponding parameter of the wall.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2023-11-08 07:33 AM
No out of the box solution, but you may check these example add-ons in the Development Kit:
- In the LibPart_Test example add-on there is an example for retrieving the physical location of the embedded library. You just need to copy your texture file into this location. A library reload may be needed.
- In the Attribute_Test example you can find codes to create attributes. There is no example for creating surfaces, but it's very similar to other attributes.
- In the Element_Test example there are a lot of codes as an example for modifying elements.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2023-11-07 08:10 PM
You can do it with the API, but you need to implement a couple of steps to achieve the final result:
- Move the texture file to the embedded library (url reference doesn't work).
- Create a Surface attribute that references the texture file from the embedded library.
- Apply the created Surface attribute on the corresponding parameter of the wall.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2023-11-08 05:41 AM
Thank you @Viktor Kovacs .
1. Is there any folder within the downloaded ArchiCAD application? Or the only way to import is through the ArchiCAD UI?
2 and 3. Any example that you know of is available for the same in the DevKit?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2023-11-08 07:33 AM
No out of the box solution, but you may check these example add-ons in the Development Kit:
- In the LibPart_Test example add-on there is an example for retrieving the physical location of the embedded library. You just need to copy your texture file into this location. A library reload may be needed.
- In the Attribute_Test example you can find codes to create attributes. There is no example for creating surfaces, but it's very similar to other attributes.
- In the Element_Test example there are a lot of codes as an example for modifying elements.