TBC Macros and Extensions

 View Only
Expand all | Collapse all

How to Highlight Objects

  • 1.  How to Highlight Objects

    Posted 02-04-2019 17:34

    I am working on a script to find certain objects in TBC. Now I need to get TBC to highlight the results.

     

    This is where I am stuck, can anyone post a good example of how to do this in TBC?

     

    Thanks

    Ramin



  • 2.  Re: How to Highlight Objects

    Posted 02-07-2019 18:45

    The easiest way would be to "select" the objects you want to hi-light.

    Just add your list to the Global Selection using code like this:

        GlobalSelection.Items(self.currentProject).Set(newSelection)

     

    You can see an example of this in the site improvement legend macro.



  • 3.  Re: How to Highlight Objects

    Posted 02-10-2019 18:36

    Thanks Gary.

     

    That worked well for me.

     

    I wish there was an online reference manual for APIs.



  • 4.  Re: How to Highlight Objects

    Posted 10-25-2019 08:36

    There absolutely needs to be an API reference.