cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Developer forum

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
3 REPLIES 3

julienK
Enthusiast

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
bschwb
Advocate

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 (partially free) Add-Ons at www.bschwb.com/add-ons

Koze85
Contributor

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

 

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!