3 weeks ago
Hi everyone,
Is there a direct way to hide or show a specific element by its GUID using the Archicad C++ API?
Does a native function or an efficient workaround exist for this in the DevKit?
Thanks,
3 weeks ago
In general, the API can only echo the things a user can do. There is no direct way to hide an individual element that I'm aware of – only general mechanisms like hiding a layer (which might affect other elements). So I doubt there is any way to do this.
3 weeks ago
I would amend this slightly: a user CAN hide selected element(s) in the 3D Viewpoint (but not in any other Viewpoint type). But I don't know if the API gives access to this feature or not.
3 weeks ago
Hi LokiTrna,
In 3D you can use `ACAPI_View_ShowSelectionIn3D()`.
So first setup the selection to contain only the elements to show and then use this API function.
Or you could also use `ACAPI_UserInput_SetElementHighlight()` and set other elements to transparent.
Hope that helps,
Bernd
3 weeks ago - last edited 3 weeks ago
If someone uses your second suggested method, will those elements still be there in the 3D Viewpoint, only invisible?
In that case, would surface/edge detection still work on them? Could they still be selected (even though they are invisible)?
Knowing these may help@LokiTrnadecide which method to use.
3 weeks ago
Very good questions Laszlo!
Don't have time to try it out right now, but should be a relative easy test (maybe for @LokiTrna themselve to try).
Please report back whoever gives it a try 🙂
3 weeks ago
No, the 3D model view is a temporary database built on demand. If you rebuild the view based on a selection it will only contain the selected elements.