Choose your top Archicad wishes!

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

Extract an LCF file into Embedded Library

Not applicable
My idea is the following. Since I cannot directly import an .lcf file into the Embedded Library, I am looking for a way to go around that and still accomplish what I need. One such way is by doing the following sequence (but via the api) Libraries and Objects -> Extract Container -> pick a .lcf file -> pick a folder to extract it into.
This way I can then add the extracted folder into the embedded library and still maintain the same structure as it would if it was inside the .lcf file.
My question is how do I accomplish it via the API? Also would it be possible to directly extract INTO the embedded library without having to extract it first to some external folder?
If that isn't possible, is there some other way of moving the content of an .lcf file into the embedded library using the API?