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

How to delete a layout

Anonymous
Not applicable
Hello
I want to find a delete a layout.
I know it should work with APIDb_​DeleteDatabaseID, but what do API_DatabaseInfo should be? How do I get a layout into API_DatabaseInfo?

Thanks!
1 ACCEPTED SOLUTION
5 REPLIES 5
Ralph Wessel
Mentor
How is it decided which layout is to be deleted? Does the user choose it?
Ralph Wessel BArch
Anonymous
Not applicable
Ralph wrote:
How is it decided which layout is to be deleted? Does the user choose it?
It’s the layouts of floors that has nothing in it.
I find them by their name.
Ralph Wessel
Mentor
Does the method for finding the layout not also provide the details required for API_DatabaseInfo? How are you locating the target layouts?
Ralph Wessel BArch
Anonymous
Not applicable
Ralph wrote:
Does the method for finding the layout not also provide the details required for API_DatabaseInfo? How are you locating the target layouts?
That’s exactly my question
Solution
Ralph Wessel
Mentor
How about using ACAPI_Database with APIDb_GetLayoutDatabasesID to retrieve a list of all layouts?
Ralph Wessel BArch

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!