# Elevation Filter does not gets loaded in SimpleParaview Example

**URL:** https://discourse.paraview.org/t/elevation-filter-does-not-gets-loaded-in-simpleparaview-example/11927
**Category:** Development
**Created:** [April 19, 2023, 6:13pm UTC](https://discourse.paraview.org/t/elevation-filter-does-not-gets-loaded-in-simpleparaview-example/11927 "2023-04-19T18:13:10Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![Muhammad\_Saad\_Atique](https://discourse.paraview.org/user_avatar/discourse.paraview.org/muhammad_saad_atique/32/11159_2.png) [@Muhammad\_Saad\_Atique](https://discourse.paraview.org/u/Muhammad_Saad_Atique)
#### Post date: [April 19, 2023, 6:13pm UTC](https://discourse.paraview.org/t/elevation-filter-does-not-gets-loaded-in-simpleparaview-example/11927/1 "2023-04-19T18:13:10Z")

</div>

Hi, I am trying to run SimpleParaview example. But Elevation Filter (custom filter) does not gets loaded in the application. I am running this on Windows.

I ran it on Mac and it was working there.

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.paraview.org/u/ben.boeckel)
#### Post date: [April 24, 2023, 12:23am UTC](https://discourse.paraview.org/t/elevation-filter-does-not-gets-loaded-in-simpleparaview-example/11927/2 "2023-04-24T00:23:17Z")

</div>

Does it fail to load? Are there any error messages on the console?

---

<div class="post-metadata">

### Author: ![Muhammad\_Saad\_Atique](https://discourse.paraview.org/user_avatar/discourse.paraview.org/muhammad_saad_atique/32/11159_2.png) [@Muhammad\_Saad\_Atique](https://discourse.paraview.org/u/Muhammad_Saad_Atique)
#### Post date: [April 24, 2023, 12:58am UTC](https://discourse.paraview.org/t/elevation-filter-does-not-gets-loaded-in-simpleparaview-example/11927/3 "2023-04-24T00:58:02Z")

</div>

It does not give any error, it just does not show up in the filters menu

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.paraview.org/u/ben.boeckel)
#### Post date: [April 24, 2023, 1:10am UTC](https://discourse.paraview.org/t/elevation-filter-does-not-gets-loaded-in-simpleparaview-example/11927/4 "2023-04-24T01:10:05Z")

</div>

Does the plugin dialog show the proper information and that it’s loaded?

---

<div class="post-metadata">

### Author: ![Muhammad\_Saad\_Atique](https://discourse.paraview.org/user_avatar/discourse.paraview.org/muhammad_saad_atique/32/11159_2.png) [@Muhammad\_Saad\_Atique](https://discourse.paraview.org/u/Muhammad_Saad_Atique)
#### Post date: [April 24, 2023, 1:14am UTC](https://discourse.paraview.org/t/elevation-filter-does-not-gets-loaded-in-simpleparaview-example/11927/5 "2023-04-24T01:14:52Z")

</div>

The [SimpleParaview](https://github.com/Kitware/ParaView/tree/master/Examples/CustomApplications/SimpleParaView) example does not have the plugin menu or tools menu, I can check after adding that

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.paraview.org/u/ben.boeckel)
#### Post date: [April 24, 2023, 1:17am UTC](https://discourse.paraview.org/t/elevation-filter-does-not-gets-loaded-in-simpleparaview-example/11927/6 "2023-04-24T01:17:10Z")

</div>

You can try using the `--plugins=` and `--plugin-search-paths=` arguments to force it.

---

<div class="post-metadata">

### Author: ![Muhammad\_Saad\_Atique](https://discourse.paraview.org/user_avatar/discourse.paraview.org/muhammad_saad_atique/32/11159_2.png) [@Muhammad\_Saad\_Atique](https://discourse.paraview.org/u/Muhammad_Saad_Atique)
#### Post date: [April 24, 2023, 1:29am UTC](https://discourse.paraview.org/t/elevation-filter-does-not-gets-loaded-in-simpleparaview-example/11927/7 "2023-04-24T01:29:32Z")

</div>

I wasn’t sure where to run --plugins and --plugin-search-paths and what should I put them equal to, so I added the tools menu, there is only vtkPVinitializer plugin in there. So, I am guessing the plugin is missing

---

<div class="post-metadata">

### Author: ![Muhammad\_Saad\_Atique](https://discourse.paraview.org/user_avatar/discourse.paraview.org/muhammad_saad_atique/32/11159_2.png) [@Muhammad\_Saad\_Atique](https://discourse.paraview.org/u/Muhammad_Saad_Atique)
#### Post date: [April 24, 2023, 1:36am UTC](https://discourse.paraview.org/t/elevation-filter-does-not-gets-loaded-in-simpleparaview-example/11927/8 "2023-04-24T01:36:38Z")

</div>

The ElevationFilter was generated at this location:

```auto
C:\Users\msaad\SimpleParaView\build\bin\SimpleParaView\SimpleParaViewCustomFilters\Release\SimpleParaViewCustomFilters.dll

```

And I was able to load it from plugin manager.  
But It was not loaded automatically in the gui, so what could be missing (I literally just cloned the SimpleParaview and ran it, so not sure why it’s not being loaded in the gui automatically)

---

<div class="post-metadata">

### Author: ![Muhammad\_Saad\_Atique](https://discourse.paraview.org/user_avatar/discourse.paraview.org/muhammad_saad_atique/32/11159_2.png) [@Muhammad\_Saad\_Atique](https://discourse.paraview.org/u/Muhammad_Saad_Atique)
#### Post date: [April 24, 2023, 3:31pm UTC](https://discourse.paraview.org/t/elevation-filter-does-not-gets-loaded-in-simpleparaview-example/11927/9 "2023-04-24T15:31:29Z")

</div>

But the plugin automatically gets added to the filters on Mac when I run SimpleParaview example, so I was expecting the same on Windows

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.paraview.org/u/ben.boeckel)
#### Post date: [April 24, 2023, 5:22pm UTC](https://discourse.paraview.org/t/elevation-filter-does-not-gets-loaded-in-simpleparaview-example/11927/10 "2023-04-24T17:22:40Z")

</div>

Oh. Odd. Finding out what mechanism that is using and why it doesn’t work on Windows would probably be the thing to investigate. I don’t have the time right now though…

---

<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: [June 1, 2023, 10:14am UTC](https://discourse.paraview.org/t/elevation-filter-does-not-gets-loaded-in-simpleparaview-example/11927/11 "2023-06-01T10:14:35Z")

</div>

Confirmed not working on windows, here is the issue:

[https://gitlab.kitware.com/paraview/paraview/-/issues/22159](https://gitlab.kitware.com/paraview/paraview/-/issues/22159)

---

<div class="post-metadata">

### Author: ![Muhammad\_Saad\_Atique](https://discourse.paraview.org/user_avatar/discourse.paraview.org/muhammad_saad_atique/32/11159_2.png) [@Muhammad\_Saad\_Atique](https://discourse.paraview.org/u/Muhammad_Saad_Atique)
#### Post date: [June 2, 2023, 4:45pm UTC](https://discourse.paraview.org/t/elevation-filter-does-not-gets-loaded-in-simpleparaview-example/11927/12 "2023-06-02T16:45:22Z")

</div>

This is the temporary solution I came up with:

I added this in my myMainWindow

```auto
char path[MAX_PATH];
  GetModuleFileName(NULL, path, MAX_PATH);
  std::filesystem::path exe_path(path);
  std::filesystem::path exe_dir = exe_path.parent_path(); // gets /Release
  std::filesystem::path bin_dir = exe_dir.parent_path(); // moves up one level to /bin

  std::string dll_path = (bin_dir /"Path_To_Your_CustomFilters.dll").string();

  vtkPVPluginLoader* loader = vtkPVPluginLoader::New();
  loader->LoadPlugin(dll_path.c_str()); 
  loader->Delete();

```
