[Paraview] Data directory in pvsm files

Ian Curington ianc at acm.org
Fri Jul 20 11:41:13 EDT 2012


Hello Utkarsh, Mohamad,

Note we have supplied a working patch at:
http://www.paraview.org/Bug/view.php?id=13092

which   includes   arbitrary   environment  variable  support in pvsm paths:

     where environment can be reference using syntax of
     %VAR_NAME%, ${VAR_NAME} and $VAR_NAME. In the latest case ($VAR_NAME), VAR_NAME must be
     from [a-zA-Z0-9_-]+ language.

so full absolute paths can be replaced with:

    <Property name="FileName" id="2875.FileName" number_of_elements="1">
        <Element  index="0" value="${MY_DATA}/interesting_result.vtk"/>

We are using it in deployed production projects.

-Ian

Wednesday, July 18, 2012, 9:32:20 PM, you wrote:

> It's not possible currently, but I think we should provide some clean
> solution for the next release. Mind reporting  a feature request on
> the bug tracker (can't remember if there's on already)?

> Utkarsh

> On Tue, Jul 17, 2012 at 4:06 AM, Mohamad M. Nasr-Azadani
> <mmnasr at gmail.com> wrote:
>> Hi,
>>
>> I have a simple question.
>> Is it possible to assign an environment variable to define data directory in
>> pvsm files?
>> As I save a pvsm file, I see that paraview uses the complete directory
>> address to add files to the pvsm file.
>> I was wondering if there is a way to define that?
>>
>> Or, an alternative question is, is there anyway for paraview just to write
>> the file names (and not the corresponding full directory)?
>> That way, we can run the pvsm file in any directory as long as all the data
>> files are in the current directory where the pvsm file is stored.
>>
>> Thanks,
>> Mohamad
>>
>>
>>
>> _______________________________________________
>> 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
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.paraview.org/mailman/listinfo/paraview
>>
> _______________________________________________
> 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

> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview



-- 
Best regards,
 Ian                            mailto:ianc at acm.org



More information about the ParaView mailing list