Is it possible automatically assign block numbers in a group data set to a
new field and replace them with each data set name?

For example I have data sets of points: wall1, wall2 , ceiling, floor and
then I make a group dataset:
groupDatasets1 = GroupDatasets(Input=[wall_1, floor_1, ceiling_1, wall_2])

Then I have below spread sheet:
[image: Inline image 1]

Then I need to make a new field e.g. "groups" (better through a
programmable filter) and for each group I add the name of the dataset. The
expected result table would looks like this:

BlockNumber, Point ID, vtkPointId, Points, Label, Label2, Groups
1, 0, 36617,    ..., ..., ... , ...,
..............................................
 wall_1
1, 1 , 420914, ..., ..., ... , ...,
..............................................
 wall_1
1, 2, 444161,  ..., ..., ... , ...,
..............................................
 wall_1
2, 0, 27932,    ..., ..., ... , ...,  ...
..........................................
 ceiling
2, 1 , 296452, ..., ..., ... , ...,  ...
.........................................
 ceiling
2, 2, 315135,  ..., ..., ... , ...,  ...
........................................
  ceiling
3, 0, 36617,    ..., ..., ... , ...,  ...
.........................................
  wall_2
3, 1 , 420914, ..., ..., ... , ...,  ...
.........................................
  wall_2

So my question has two parts:
1. How do we automatically group datasets in the pipeline browser?
2. While grouping, how to add a field as an attribute that contains the
datasets names.

Then I can save this spreadsheet for later use.

Thanks for any help.

Shayan
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview

Reply via email to