Hi @cobo,
I’ve done it the following way inside a ParaViewWeb app:
[Line Dataset] > ExtractTopHoleFilter > DataLabelRepresentation
I’ve created a new Representation via an XML file (no code) that I load as a plugin in PV 5.8
I’ve created a filter ExtractTopHoleFilter using the python plugin infrastructure.
That way, by loading a Python and an XML file as plugins, I was able to do exactly what you are trying to achieve.
For reference here is the XML part, for the filter, I’m sure you can figure it out.
<ServerManagerConfiguration>
<ProxyGroup name="representations">
<Extension name="GeometryRepresentation">
<RepresentationType
subproxy="DataLabelRepresentation"
text="Labels"
/>
<SubProxy>
<Proxy
name="DataLabelRepresentation"
proxygroup="representations"
proxyname="DataLabelRepresentation"
/>
<ShareProperties subproxy="SurfaceRepresentation">
<Exception name="Input" />
<Exception name="Visibility" />
</ShareProperties>
<ExposedProperties>
<Property name="PointFieldDataArrayName" />
<Property name="PointLabelBold" />
<Property name="PointLabelColor" />
<Property name="PointLabelFontFamily" />
<Property name="PointLabelFontSize" />
<Property name="PointLabelFormat" />
<Property name="PointLabelItalic" />
<Property name="PointLabelJustification" />
<Property name="PointLabelOpacity" />
<Property name="PointLabelShadow" />
<Property name="PointLabelVisibility" />
<Property name="MaximumNumberOfLabels" />
</ExposedProperties>
</SubProxy>
</Extension>
</ProxyGroup>
</ServerManagerConfiguration>
HTH,
Seb