Sketchup C API how to add new layers to a model

Please delete the other off-topic post.

Most functions return codes. The docs tell you what the codes are. What return code did you get?

Also post a snippet showing what the code is that doesn’t work. Read this how to post code: