[Paraview] Creating a reader: Problem with extension

Berk Geveci berk.geveci at gmail.com
Fri Jun 2 14:53:08 EDT 2006


I looked into it and there is no easy way of doing. The current dialog does
not support switching between choosing directories and files. I think the
best way of handling this is to choose a default extension like .of and
require that the users create it. The file may be empty. The reader can
handle the rest. There is always the fallback of choosing "All Files" and
then controlDict and then from the list of readers that show up, choosing
OpenFOAM reader.

-Berk

On 6/2/06, Terry Jordan <Terry.Jordan at sa.netl.doe.gov> wrote:
>
> I am working on a reader for OpenFOAM and encountering a problem.
> OpenFOAM is a group of files with no extensions.  The file I inital open
> is called controlDict, so I used "controlDict" as my "extensions".  This
> workaround allows me to see my files but if I just select it when doing
> a file open I get an error (it tries to attach the first extensions in
> the Paraview files list) "File XXXX does not exist".  So I have to
> choose "OpenFOAM Files" in "Files of Type" which allows me to proceed
> and is followed by another error "Could not find an appropiate reader
> file XXXX. Would you like to manually select the reader of this file?".
> >From here I can select my reader, again, and it does work, but this is
> going to be a headache for any one who uses this.  I have asked the
> OpenFoam developers if the can add a file extension and they are
> unwilling.  Is there anyway this can be fixed on the paraview side?
>
> Terry E. Jordan Jr.
> SAIC
> 3610 Collins Ferry Road
> Morgantown, WV 26505
> terry.jordan at sa.netl.doe.gov
>
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/paraview/attachments/20060602/b86ce84b/attachment.htm


More information about the ParaView mailing list