cli to reconcile and post versions as well as create them
- download the project from the link above
- edit the
config.py
file with the correct values
- browse to
reconcile-and-post-master\src
- click on the
*.bat
file for what you would like to do
- open the command line and change directories to the
src
folder within this projectcd c:\dev\reconcile-and-post\src
- activate the arcgis python conda environment to get access to arcpy
"C:\Program Files\ArcGIS\Pro\bin\Python\Scripts\proenv.bat"
- or
activate arcgispro-py3
You are now ready to run the tool. The tool is organized as a python module so to run the module you have to pass a special flag to python. python -m
You can use the tool in a few different ways by passing the action
flag. The first action is create
. This creates the version tree. delete
does the opposite and deletes all the versions. reconcile
creates the RNP versions and reconciles them. Finally, there is an all
action which is the default and will perform all the other actions.
-
run the tool as a module to perform all of the actions.
-
python -m rnp
or more specificallypython -m rnp --action=all
This assumes that there is already a version tree available.
-
-
run the tool to create the versions
python -m rnp --action=create
-
run the tool to delete the versions
python -m rnp --action=delete
-
run the tool to reconcile the versions
python -m rnp --action=reconcile
if your terminal starts in another drive letter than where you downloaded type the drive letter only to switch. for example c:
if you see No module named rnp
then you need to cd
to the src
folder within the project you downloaded. For example cd c:\dev\reconcile-and-post\src
.