visual3d:documentation:reports:scripting_report_templates_example
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
visual3d:documentation:reports:scripting_report_templates_example [2024/06/26 20:07] – removed sgranger | visual3d:documentation:reports:scripting_report_templates_example [2024/07/17 15:46] (current) – created sgranger | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Scripting Report Templates Example ====== | ||
+ | |||
+ | ===== Introduction ===== | ||
+ | |||
+ | This script may be used to graph signals in a report template. Instructions to use this script may be found [[Visual3D: | ||
+ | |||
+ | ===== Sample Script ===== | ||
+ | |||
+ | < | ||
+ | ! ======================================================= | ||
+ | ! Set Parameters | ||
+ | ! ======================================================= | ||
+ | |||
+ | Prompt_For_Multiple_Pipeline_Parameter_Values | ||
+ | / | ||
+ | | ||
+ | | ||
+ | / | ||
+ | / | ||
+ | ! PAREMETER LIST EXPLAINED: | ||
+ | ! PAGE_COUNT | ||
+ | ! Starting page | ||
+ | ! COLUMN | ||
+ | ! Starting column | ||
+ | ! ROW | ||
+ | ! Starting row | ||
+ | ! EVENT | ||
+ | ! If graphing kinematics use " | ||
+ | ! There is a loop later in the script (::SIDE) which will loop through L & R | ||
+ | ! The colors are specified in HEX however only numbers (no letters) can be specified in the Expression | ||
+ | ! To pick colors: http:// | ||
+ | ! The first value in the color MUST be 1 or greater (it cannot be 0) | ||
+ | ! Color information | ||
+ | ! 990000 = Red | ||
+ | ! 109900 = Green | ||
+ | ! | ||
+ | ! If not using the "Set Pipeline Parameter From Expression" | ||
+ | ! the line color, any value can be typed in the " | ||
+ | ! " | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | | ||
+ | ! List of components that will be graphed | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | |||
+ | ! ======================================================= | ||
+ | ! Indicate the signals being graphed using prompt | ||
+ | ! (1) kinematic (2) kinetic or (3) all | ||
+ | ! ======================================================= | ||
+ | |||
+ | Set_Pipeline_Parameter | ||
+ | ! List of signals that will be graphed | ||
+ | ! The SIDE parameter will specify whether the signal is L or R | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | |||
+ | Set_Pipeline_Parameter | ||
+ | ! List of signals that will be graphed | ||
+ | ! The SIDE parameter will specify whether the signal is L or R | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | |||
+ | Set_Pipeline_Parameter | ||
+ | ! List of signals that will be graphed | ||
+ | ! The SIDE parameter will specify whether the signal is L or R | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | |||
+ | Prompt_For_Pipeline_Parameter_Value | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | |||
+ | Set_Pipeline_Parameter | ||
+ | ! List of signals that will be graphed | ||
+ | ! The SIDE parameter will specify whether the signal is L or R | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | |||
+ | ! ======================================================= | ||
+ | ! Set Counters | ||
+ | ! ======================================================= | ||
+ | |||
+ | Set_Pipeline_Parameter | ||
+ | ! Set the original column number (this will be incremented at the end of each SIDE loop) | ||
+ | ! At the end of each SIDE loop, the column will be set back to this value | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | |||
+ | Set_Pipeline_Parameter | ||
+ | ! Set the original row number (this will be incremented at the end of each COMPONENT loop) | ||
+ | ! At the end of each COMPONENT loop, the row will be set back to this value | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | |||
+ | ! ======================================================= | ||
+ | ! Begin Graphing | ||
+ | ! ======================================================= | ||
+ | |||
+ | For_Each | ||
+ | ! A new page will be created for each signal in the DATA_NAME_LIST | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | |||
+ | Set_Report_Page_Title | ||
+ | ! The title of the current page will be set to the current signal name | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | |||
+ | For_Each | ||
+ | ! For each side (left/ | ||
+ | / | ||
+ | /ITEMS=L+R | ||
+ | ; | ||
+ | |||
+ | Set_Pipeline_Parameter_From_Expression | ||
+ | ! This command is comparing the current side (::SIDE) to determine the color of the graph | ||
+ | ! If the items in the SIDE list are changed the comparisons will need to be changed as well (" | ||
+ | ! The colors are specified in HEX however only numbers (no letters) can be specified in the Expression | ||
+ | ! To pick colors: http:// | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | |||
+ | For_Each | ||
+ | ! Each component (X,Y,Z) will be added to a new graph since the row number will be incremented at the end of each loop | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | |||
+ | Make_Line_Graph | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ! /ROW_SPAN=1 | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ; | ||
+ | |||
+ | Set_Pipeline_Parameter_From_Expression | ||
+ | ! At the end of each COMPONENT loop, a new row is created | ||
+ | ! Allows each COMPONENT to have it's own row | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ; | ||
+ | |||
+ | End_For_Each | ||
+ | ! End COMPONENT loop | ||
+ | / | ||
+ | ; | ||
+ | |||
+ | Set_Pipeline_Parameter | ||
+ | ! At the end of each SIDE loop, row counter is set back to original value | ||
+ | ! Allows each side to start with a graph at the original row specified | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | |||
+ | Set_Pipeline_Parameter_From_Expression | ||
+ | ! At the end of each SIDE loop, a new column is created | ||
+ | ! Allows each side to have it's own column | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ; | ||
+ | |||
+ | End_For_Each | ||
+ | ! End SIDE loop | ||
+ | / | ||
+ | ; | ||
+ | |||
+ | Set_Pipeline_Parameter | ||
+ | ! At the end of each DATA_NAME loop, column counter is set back to original value | ||
+ | ! Allows each page to start with a graph at the original column specified | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | |||
+ | Set_Pipeline_Parameter_From_Expression | ||
+ | ! At the end of each DATA_NAME loop, a new page is created | ||
+ | ! Allows each signal to have it's own page | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ; | ||
+ | |||
+ | End_For_Each | ||
+ | ! End DATA_NAME loop | ||
+ | / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | |||
visual3d/documentation/reports/scripting_report_templates_example.1719432470.txt.gz · Last modified: 2024/06/26 20:07 by sgranger