visual3d:documentation:pipeline:file_commands:update_workspaces_example
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
visual3d:documentation:pipeline:file_commands:update_workspaces_example [2024/06/19 12:50] – sgranger | visual3d:documentation:pipeline:file_commands:update_workspaces_example [2024/07/17 15:45] (current) – created sgranger | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
- | you can use a pipeline to loop over a series of cmz files to update them (i.e. calculate measures you decided to create after creating the cmz files). | + | ===== Introduction ===== |
- | this can also be done by creating | + | You can use a pipeline to loop over a series of CMZ files to update them (i.e. calculate measures you decided to create after creating the CMZ files). |
- | you can copy/paste the example below into visual3d/a text file or [[https:// | + | This can also be done by creating |
- | ===== example ===== | + | You can copy/paste the example below into Visual3D/a text file or [[https:// |
+ | |||
+ | ==== Example | ||
< | < | ||
! ============================================================================================ | ! ============================================================================================ | ||
- | ! update | + | ! Update |
! ============================================================================================ | ! ============================================================================================ | ||
! -------------------------------------------------------------------------------------------- | ! -------------------------------------------------------------------------------------------- | ||
- | ! pipeline parameters | + | ! Pipeline Parameters |
! -------------------------------------------------------------------------------------------- | ! -------------------------------------------------------------------------------------------- | ||
- | ! folder | + | ! Folder |
- | ! note: this would be the top level folder: | + | ! Note: This would be the top level folder: |
- | ! c:\data | + | ! C:\Data |
- | ! the data would then be in subfolders: | + | ! The data would then be in subfolders: |
- | ! c:\data\sub01 | + | ! C:\Data\Sub01 |
- | ! c:\data\sob02 | + | ! C:\Data\Sob02 |
- | set_pipeline_parameter | + | Set_Pipeline_Parameter |
- | /parameter_name=folder_path | + | /PARAMETER_NAME=FOLDER_PATH |
- | /parameter_value=c:\data | + | /PARAMETER_VALUE=C:\Data |
- | ! /parameter_value_search_for= | + | ! /PARAMETER_VALUE_SEARCH_FOR= |
- | ! /parameter_value_replace_with= | + | ! /PARAMETER_VALUE_REPLACE_WITH= |
- | ! /parameter_value_prefix= | + | ! /PARAMETER_VALUE_PREFIX= |
- | ! /parameter_value_append= | + | ! /PARAMETER_VALUE_APPEND= |
- | ! /multi_pass=false | + | ! /MULTI_PASS=FALSE |
; | ; | ||
- | ! specify | + | ! Specify |
- | set_pipeline_parameter | + | Set_Pipeline_Parameter |
- | /parameter_name=script_folder_path | + | /PARAMETER_NAME=SCRIPT_FOLDER_PATH |
- | /parameter_value=c:\data\update_scripts | + | /PARAMETER_VALUE=C:\Data\Update_Scripts |
- | ! /parameter_value_search_for= | + | ! /PARAMETER_VALUE_SEARCH_FOR= |
- | ! /parameter_value_replace_with= | + | ! /PARAMETER_VALUE_REPLACE_WITH= |
- | ! /parameter_value_prefix= | + | ! /PARAMETER_VALUE_PREFIX= |
- | ! /parameter_value_append= | + | ! /PARAMETER_VALUE_APPEND= |
- | ! /multi_pass=false | + | ! /MULTI_PASS=FALSE |
; | ; | ||
! -------------------------------------------------------------------------------------------- | ! -------------------------------------------------------------------------------------------- | ||
- | ! get list of cmz files to update | + | ! Get List of CMZ Files to Update |
! -------------------------------------------------------------------------------------------- | ! -------------------------------------------------------------------------------------------- | ||
- | set_pipeline_parameter_to_list_of_files | + | Set_Pipeline_Parameter_To_List_Of_Files |
- | /parameter_name=cmz_list | + | /PARAMETER_NAME=CMZ_LIST |
- | /folder=::folder_path& | + | /FOLDER=::FOLDER_PATH& |
- | /search_subfolders=true | + | /SEARCH_SUBFOLDERS=TRUE |
- | /file_mask=*.cmz | + | /FILE_MASK=*.cmz |
; | ; | ||
! -------------------------------------------------------------------------------------------- | ! -------------------------------------------------------------------------------------------- | ||
- | ! get list of scripts | + | ! Get List of Scripts |
! -------------------------------------------------------------------------------------------- | ! -------------------------------------------------------------------------------------------- | ||
- | set_pipeline_parameter_to_list_of_files | + | Set_Pipeline_Parameter_To_List_Of_Files |
- | /parameter_name=script_list | + | /PARAMETER_NAME=SCRIPT_LIST |
- | /folder=::script_folder_path& | + | /FOLDER=::SCRIPT_FOLDER_PATH& |
- | /search_subfolders=true | + | /SEARCH_SUBFOLDERS=TRUE |
- | /file_mask=*.v3s | + | /FILE_MASK=*.v3s |
; | ; | ||
! -------------------------------------------------------------------------------------------- | ! -------------------------------------------------------------------------------------------- | ||
- | ! process each cmz | + | ! Process Each CMZ |
! -------------------------------------------------------------------------------------------- | ! -------------------------------------------------------------------------------------------- | ||
- | for_each | + | For_Each |
- | /iteration_parameter_name=current_cmz | + | /ITERATION_PARAMETER_NAME=CURRENT_CMZ |
- | ! /iteration_parameter_count_name= | + | ! /ITERATION_PARAMETER_COUNT_NAME= |
- | /items=::cmz_list | + | /ITEMS=::CMZ_LIST |
; | ; | ||
- | ! clear the workspace | + | ! Clear the Workspace |
- | | + | |
; | ; | ||
- | ! open one cmz file | + | ! Open one CMZ file |
- | | + | |
- | /file_name=::current_cmz | + | /FILE_NAME=::CURRENT_CMZ |
- | ! /suffix= | + | ! /SUFFIX= |
- | ! /set_prompt=file_open | + | ! /SET_PROMPT=File_Open |
- | ! /filter= | + | ! /FILTER= |
; | ; | ||
! -------------------------------------------------------------------------------------------- | ! -------------------------------------------------------------------------------------------- | ||
- | ! run scripts | + | ! Run Scripts |
! -------------------------------------------------------------------------------------------- | ! -------------------------------------------------------------------------------------------- | ||
- | ! loop over each script in the update script | + | ! Loop over each script in the Update Script |
- | | + | |
- | /iteration_parameter_name=current_script | + | /ITERATION_PARAMETER_NAME=CURRENT_SCRIPT |
- | ! /iteration_parameter_count_name= | + | ! /ITERATION_PARAMETER_COUNT_NAME= |
- | /items=::script_list | + | /ITEMS=::SCRIPT_LIST |
; | ; | ||
- | ! run the current script | + | ! Run the current script |
- | | + | |
- | /script_file_name=::current_script | + | /SCRIPT_FILE_NAME=::CURRENT_SCRIPT |
- | ! /script_path= | + | ! /SCRIPT_PATH= |
; | ; | ||
- | | + | |
- | /iteration_parameter_name=current_script | + | /ITERATION_PARAMETER_NAME=CURRENT_SCRIPT |
; | ; | ||
- | ! save cmz file | + | ! Save CMZ File |
- | | + | |
- | ! /set_prompt=save cmo file | + | ! /SET_PROMPT=Save CMO file |
; | ; | ||
- | ! clear the workspace | + | ! Clear the workspace |
- | | + | |
; | ; | ||
- | end_for_each | + | End_For_Each |
- | /iteration_parameter_name=current_cmz | + | /ITERATION_PARAMETER_NAME=CURRENT_CMZ |
; | ; | ||
</ | </ |
visual3d/documentation/pipeline/file_commands/update_workspaces_example.1718801440.txt.gz · Last modified: 2024/06/19 12:50 by sgranger