# How to high light blocks, make them just like they are selected

**URL:** https://discourse.paraview.org/t/how-to-high-light-blocks-make-them-just-like-they-are-selected/2599
**Category:** Development
**Created:** [September 20, 2019, 12:52pm UTC](https://discourse.paraview.org/t/how-to-high-light-blocks-make-them-just-like-they-are-selected/2599 "2019-09-20T12:52:47Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![sharon](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/67e7ee/32.png) [@sharon](https://discourse.paraview.org/u/sharon)
#### Post date: [September 20, 2019, 12:52pm UTC](https://discourse.paraview.org/t/how-to-high-light-blocks-make-them-just-like-they-are-selected/2599/1 "2019-09-20T12:52:47Z")

</div>

Dear Experts,

I want to high light some blocks and the desired the effect just like blocks are selected in paraview.

But seems doing thing like selection is very heavy, is there any more elegant way to do so?

I can refer file: paraview\Qt\Components\pqMultiBlockInspectorWidget.cxx  
method “selectBlocks” to make blocks selected, but the comment therein say this is not good…

Thanks in advance!  
Best Regards,  
Sharon

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [September 30, 2019, 5:44am UTC](https://discourse.paraview.org/t/how-to-high-light-blocks-make-them-just-like-they-are-selected/2599/2 "2019-09-30T05:44:20Z")

</div>

You mean programmatically ?

There is no other way than creating an actual selection currently.

---

<div class="post-metadata">

### Author: ![sharon](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/67e7ee/32.png) [@sharon](https://discourse.paraview.org/u/sharon)
#### Post date: [October 13, 2019, 1:47am UTC](https://discourse.paraview.org/t/how-to-high-light-blocks-make-them-just-like-they-are-selected/2599/3 "2019-10-13T01:47:54Z")

</div>

Hi Mathieu,

Yes, in programmatic way!

Yes, i can use selection manager to select them.

Any suggestion about create my own source and representation, to reach the same result?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [October 14, 2019, 1:55am UTC](https://discourse.paraview.org/t/how-to-high-light-blocks-make-them-just-like-they-are-selected/2599/4 "2019-10-14T01:55:30Z")

</div>

You have to create a selection, there is no other way that I know of.
