Table of Contents

Export C3DFile

Overview

The Export_C3DFile command is available in the Visual3D as a way to export a C3D file.

Pipeline Command

The command below is as seen on the Visual3D application, it has many parameters as there are many options to manipulate this command.

Export_C3DFile
! /OLD_FILE_NAME=
! /NEW_FILE_NAME=
! /DESTINATION_FOLDER=
! /SUFFIX=_
! /CREATE_FOLDER_PATH=FALSE
! /PROMPT_FOR_NEW_FILE=TRUE
! /IF_NEWFILE_EXISTS_REPLACE=FALSE
! /EXPORT_ENDIAN=
! /TRUNCATE_POINT_LABELS=FALSE
! /USE_ORIGINAL_START_FRAME=FALSE
! /EXPORT_START_FRAME=1
! /EXPORT_END_FRAME=EOF
! /EXPORT_PROCESSED_TARGET_DATA=FALSE
! /EXPORT_PROCESSED_ANALOG_DATA=FALSE
! /TRUNCATE_PARAMETER_SECTION=FALSE
/EXPORT_ALL_LANDMARKS=FALSE
! /EXPORT_DIGITIZING_LANDMARKS=FALSE
! /EXPORT_FUNCTIONAL_LANDMARKS=FALSE
! /EXPORT_EMPTY_TARGETS=FALSE
! /EVENT_LABELS=
! /EXPORT_OLD_EVENT_LABELS=FALSE
;

Command Parameters

The Export_C3DFile command parameter definitions are found below:

ParameterDescription
/OLD_FILE_NAME=The name of a c3d file in the workspace. Wildcards (*) are acceptable.
/NEW_FILE_NAME=The names of the files to be exported.
/DESTINATION_FOLDER=The name of the folder to save the files. If no folder is specified, the user is prompted for the folder.
/SUFFIX=The suffix is added to the new filename.
/CREATE_FOLDER_PATH=FALSEIf 'TRUE', creates the destination folder if it doesn't exist.
/PROMPT_FOR_NEW_FILE=TRUEIf 'TRUE', opens a dialog to allow the user to choose the destination C3D name.
/EXPORT_ENDIAN=The endian for the exported file.
/TRUNCATE_POINT_LABELS=FALSEExports all point labels with 4 characters.
/USE_ORIGINAL_START_FRAME=FALSEIf 'TRUE', keeps the original start frame of the file.
/EXPORT_START_FRAME=1Frame to start the export from.
/EXPORT_END_FRAME=EOFFrame to end the export on ('EOF' = end of file).
/EXPORT_PROCESSED_TARGET_DATA=FALSEIf 'TRUE', exports processed marker data.
/EXPORT_PROCESSED_ANALOG_DATA=FALSEIf 'TRUE', exports processed analog data.
/TRUNCATE_PARAMETER_SECTION=FALSEIf 'TRUE', trims parameter section for compatibility.
/EXPORT_ALL_LANDMARKS=FALSE(TRUE or FALSE) Export Landmarks as Targets.
/EXPORT_DIGITIZING_LANDMARKS=FALSE(TRUE or FALSE) Export Digitizing Landmarks as Targets.
/EXPORT_EMPTY_TARGETS=FALSEIf 'TRUE', includes empty target signals in export.
/EVENT_LABELS=Specify which event labels to export.
/EXPORT_OLD_EVENT_LABELS=FALSEIf 'TRUE“, uses old event label format for compatibility.

Dialog

The command can be edited in a text editor or in dialog form. To edit in the dialog, either click on the Edit button in the pipeline workshop, or double-click on the pipeline command. The dialog is shown below:

Examples

The following examples will go through the use of the Export_C3DFile command in the Visual3D application.

Example 1: Exporting between Event_Labels

Only a START_FRAME and an END_FRAME are available as parameters for the export command. To export between EVENT_LABELS:

Set_Pipeline_Parameter_From_Expression
/PARAMETER_NAME=START_FRAME
/EXPRESSION=1+EVENT_LABEL::ORIGINAL::START*PARAMETERS::POINT::RATE
/AS_INTEGER=TRUE
;
Set_Pipeline_Parameter_From_Expression
/PARAMETER_NAME=ENDFRAME
/EXPRESSION=1+EVENT_LABEL::ORIGINAL::END*PARAMETERS::POINT::RATE
/AS_INTEGER=TRUE
;

Export_C3DFile
/OLD_FILE_NAME=C:\Demo Files\CaseAMD\amd001.c3d
/NEW_FILE_NAME=test.c3d
/DESTINATION_FOLDER=Z:\scottselbie 1\Desktop\test\
/SUFFIX=
/EXPORT_ENDIAN=1
! /TRUNCATE_POINT_LABELS=FALSE
! /USE_ORIGINAL_START_FRAME=FALSE
/EXPORT_START_FRAME=::START_FRAME
/EXPORT_END_FRAME=::END_FRAME
! /EXPORT_PROCESSED_TARGET_DATA=FALSE
! /EXPORT_PROCESSED_ANALOG_DATA=FALSE
! /TRUNCATE_PARAMETER_SECTION=FALSE
/EXPORT_ALL_LANDMARKS=FALSE
! /EXPORT_DIGITIZING_LANDMARKS=FALSE
! /EXPORT_FUNCTIONAL_LANDMARKS=FALSE
! /EXPORT_EMPTY_TARGETS=FALSE
! /EVENT_LABELS=
! /EXPORT_OLD_EVENT_LABELS=FALSE
;

Example 2: Exporting all C3D files from the Workspace

This example will export all C3D files in the Workspace

Export_C3DFile
/Old_File_Name= *.c3d
!/New_File_Name=
/Destination_Folder=
/Suffix=
!/Export_Endian=
!/Truncate_Point_Labels=
!/USE_ORIGINAL_START_FRAME=FALSE
!/EXPORT_START_FRAME=1
!/EXPORT_END_FRAME=EOF
!/Export_Processed_Data= false
!/Truncate_Parameter_Section=false
!/Export_Junk_Targets=false
!/Export_Old_Event_Labels=false
!/Event_Labels=
;

Note that the /Destination_Folder= is not specified in the command above. To have control over the destination folder for the exported C3D file, the entire path to the exported file should be specified. Often this is done by adding a pipeline command to prompt the user for the Folder Path.

! This will allow the user to set the folder path for the destination files
Set_Pipeline_Parameter_To_Folder_Path
/PARAMETER_NAME= FOLDER
/PARAMETER_VALUE=
;

! Export all C3D files in the Workspace to the Folder path specified by the user
Export_C3DFile
/Old_File_Name= *.c3d
!/New_File_Name=
/Destination_Folder=::FOLDER
/Suffix=
!/Export_Endian=
!/Truncate_Point_Labels=
!/USE_ORIGINAL_START_FRAME=FALSE
!/EXPORT_START_FRAME=1
!/EXPORT_END_FRAME=EOF
!/Export_Processed_Data= false
!/Truncate_Parameter_Section=false
!/Export_Junk_Targets=false
!/Export_Old_Event_Labels=false
!/Event_Labels=
;

Exporting Processed Signals

If /Export_Processed_Data= TRUE, Visual3D exports only data from the TARGET PROCESSED folder.

If there are no signals in the PROCESSED folder, the exported C3D file will contain no POINT data.

! This will allow the user to set the folder path for the destination files
Set_Pipeline_Parameter_To_Folder_Path
/PARAMETER_NAME= FOLDER
/PARAMETER_VALUE=
;

! Export all C3D files in the Workspace to the Folder path specified by the user
! Visual3D exports only data from the TARGET PROCESSED folder
Export_C3DFile
/Old_File_Name= *.c3d
!/New_File_Name=
/Destination_Folder=::FOLDER
/Suffix=
!/Export_Endian=
!/Truncate_Point_Labels=
!/USE_ORIGINAL_START_FRAME=FALSE
!/EXPORT_START_FRAME=1
!/EXPORT_END_FRAME=EOF
/Export_Processed_Data= TRUE
!/Truncate_Parameter_Section=false
!/Export_Junk_Targets=false
!/Export_Old_Event_Labels=false
!/Event_Labels=
!/Number_Of_Frames_To_Export=ALL
;

Back to Pipeline Commands Reference