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.

GSSError: ACAPI_ModelAccess_Get3dInfo on Complex Geometry after APIElementEventHandlerProc/EndEvents

Kalloc Studio Fuzor
Participant

Hello,

 

I am writing a plugin that does some processing on complex pieces of geometry like Curtain Walls. And I am running into an issue, where when I use a APIElementEventHandlerProc and then encounter a EndEvents, I go to query the document for the segments/frames/panels of said wall using ACAPI_ModelAccess_Get3dInfo. And all I get back is a GSSError. Interestingly, when I close the project, reload and query for the same geometry it's all there and accounted for; no GSSError.

It makes me wonder, is there some asynchronous processing yet to be completed/ transaction not committed, for complex entities causing the document query to return an error? If so how and when is does my plugin know when the time is right to retrieve that information.

Thanks for your help in advanced.

1 REPLY 1

Hi!

 

That's a tough one.

 

What's the Event your are handling in general? APINotifyElement_Change, APINotifyElement_Edit or something like this?

There might be a workaround with ACAPI_AddOnAddOnCommunication_CallFromEventLoop but it's tough to implement and I'm not at all sure if it would help.

 

Best regards,
Bernd

Automating Archicad with Add-Ons, GDL-Objects & Python Archi-XT.com