BIM Coordinator Program (INT) April 22, 2024

Find the next step in your career as a Graphisoft Certified BIM Coordinator!

Archicad C++ API
About Archicad add-on development using the C++ API.

IES light files

Anonymous
Not applicable
Is there a way to get the location of a source IES light file? When reading the ParameterList data of the lights in a BaseElement, the actual file name is listed in the C4D_PHO_FILE field but no source path.

I'd like to either get the path to the original file or the imported content.

I'm creating the IES light by using the ArchiCAD library part "IES Light 18.gsm" and setting the Photometric File Name field to the IES file I'm importing. (I need the IES info for an external renderer.)

Any tips appreciated.

UPDATE: actually getting the info from the light instance is far preferable to a source path (for portability).
2 REPLIES 2
Anonymous
Not applicable
To continue the conversation with myself, I can locate the library item that represents the IES file and was hoping to retrieve the custom data via ACAPI_LibPart_GetSection. But I'm not sure what kind of data ID I need to pass in. I've tried most of the standard ones (the 4-char codes) but I may be doing something else wrong.

When I export the light and convert to XML it doesn't look like the IES info is there.
Laszlo Nagy
Community Admin
Community Admin
Well, in that case I merge the two topics to ease this conversation.

Sorry, I cannot answer your questions I am not a C++ programmer.
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
Learn and get certified!