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

how to check if library (like a toilet) overlap with wall

Anonymous
Not applicable
when we insert door or window on wall It check and cut the wall automatically,

so I'd like to know how it "know" the wall??

'cause I need to add some "smart" to object like toilet or basin which can know how far it is to stay from the beside wall and if it close to that wall, it can "jump out" to the proper point

please inform me. thanks so much.
2 REPLIES 2
Karl Ottenstein
Moderator
Windows and doors can only exist inside of walls. They 'know' about the wall because the wall is their 'host'.

No other objects are wall-aware, and so the intelligence you hope for is not possible. You can create objects that are not windows and doors and save them as a window or door 'type' - but they would only be aware of the single wall that they would 'belong' to - it is impossible to query any information about adjacent walls.

Oops. Just realized that you posted this to the Developer forum. Is that intentional? Are you trying to program a custom add-on to manage what you are asking, or are you just asking how to work as a user in ArchiCAD?

Cheers,
Karl
One of the forum moderators
AC 27 USA and earlier   •   macOS Ventura 13.6.3, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB
Anonymous
Not applicable
dear Karl,

thanks a lot for your answer,

yes, of course, I try to find how to start to do about this, so if you know about 'how to' do this, inform me, pls.

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!