cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Archicad C++ API
About Archicad add-on development using the C++ API.

Getting incorrect floor plan view of Door object when using APIImage_Model2D in Override sample

Tran Thanh Lo
Booster

Hi everyone,
I’m trying to get the floor plan image of Door objects in Archicad. I referred to the Override sample project and used the following code:

API_VisualOverriddenImage image = {};
image.view = APIImage_Model2D;
image.overrideStyle.uncutSurfaceType = ACAPI_CreateAttributeIndex(5); // Stone - Limestone Fine
err = ACAPI_GraphicalOverride_GetVisualOverriddenImage(APIGuidFromString(doorData.InstanceGuid.c_str()), &image);

 

However, I found that for some doors, I can get the correct floor plan image, but for others, it doesn’t work.

I checked and I think the doors that don’t return the floor plan image might have some internal issue, but I’m not sure what exactly is causing it.
Do you know why this happens or how to fix it?

Thank you very much for your help!

 

TranThanhLo_0-1762589347329.png

 

TranThanhLo_1-1762589385862.png

1 REPLY 1
Akos Somorjai
Graphisoft
Graphisoft

Hi Tran,

 

Could you please tell me which door from the standard Archicad library packs exhibits the issue?

Do you have a chance to test this in newer Archciad versions?

 

Thanks, Akos

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!