VR-Forces 4.0.4 Class Documentation
Distributing Data with Plug-Ins

If you write a plug-in that affects schemas, model definitions, or element definitions, you might have new or modified settings that you want to install with your plug-in.

You would have created the modified settings file by adding and editing the appropriate settings in VR-Forces and saving the settings to file.

You could install your settings files and ask your customer to merge in the settings by hand in the GUI, or you can merge them in as part of your installation process. VR-Forces includes a tool, vrvMerge, for merging settings.

The merge tool can merge files that have the following extensions:

vrvMerge has the following syntax:

INSTALL_DIR/bin/vrvMergeTool input_file merge_file [output_file]

where:

If the file extensions do not match or if an extension is not supported, vrvMerge prints an error.

The following example merges MyModelDefinitions into the default model definitions file.

[INSTALL_DIR]/bin/vrvMergeTool "MyModelDefinitions.ommx" "Model Definitions.ommx"

You can run this tool as many times as you wish for model definitions.

Note:
The merge tool updates the settings files in ./appData. If a user restores the factory settings, the merged settings will be lost. You will need to provide your customer with instructions for merging in your modified files if they get overridden.

[<< Building VR-Forces Applications and Examples] [Home] [Top of Page]


Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)