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

AC API automatic update of a textbox

Koze85
Contributor

Hi can I automatically update a textbox with the Area of a specific fill whenever a user change its shape?

1 ACCEPTED SOLUTION

Accepted Solutions
Solution

Hi!

You can attach observers to elements. In the handler proc you can then put the code to update the textbox. Check out the section "Element related notifications" on this page: Notification Manager | Archicad API.

Also check out the Notification_Manager example coming with the API DevKit.

Bernd Schwarzenbacher - Archicad Add-On Developer - Get Add-Ons & Archicad Tips on my Website: bschwb.com

View solution in original post

3 REPLIES 3
julienK
Advocate

Texdtbox don't have an asociative property so I'm not sure it can be done.

You should use an associative label for this.

 
Solution

Hi!

You can attach observers to elements. In the handler proc you can then put the code to update the textbox. Check out the section "Element related notifications" on this page: Notification Manager | Archicad API.

Also check out the Notification_Manager example coming with the API DevKit.

Bernd Schwarzenbacher - Archicad Add-On Developer - Get Add-Ons & Archicad Tips on my Website: bschwb.com
Koze85
Contributor

Thanks it was of the few examples I hadnt compile and tried!

 

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!