Page 1 of 1

How to access TCP panel data?

Posted: Wed Jan 08, 2025 12:26 pm
by nickorzhan
Hi everyone,
 I'm developing a plugin for Bookmap (version 7.5.0), and I need to access specific data from the TCP panel. Specifically, I’m looking for:
  • The size field value
  • The brackets active/inactive settings
  • The TP and SL fields value
I’ve seen how DOM Pro handles some of these fields, but I can’t find any reference or documentation on how to retrieve this data using Bookmap’s API.
 Does anyone know if it’s possible to access these fields programmatically or if there are any relevant API methods? Any example code or pointers to documentation would be greatly appreciated!
 Thanks in advance!

Re: How to access TCP panel data?

Posted: Wed Jan 08, 2025 1:02 pm
by Andry API support
Hello,
there are no good ways to access these values. The existing approach is to traverse the graphic components tree. It currently works but there is no guarantee it will work forever.
Please see this topic for examples, you may use the same approach with the TCP:
https://bookmap.com/forum/viewtopic.php?f=3&t=3562