hexagon logo

How can I create a Plot Page Template using 'Add/Replace Simulations' ?

Maybe a very obvious question but I have not found an optimal solution yet.
 
What I want to obtain is an 'Easy' approach to create identical plot pages from several runs without losing data halfway or overwriting plots already made from previous runs.
 
I have been playing with a number of approaches:
1) export/import plot config files,
2) 'Add/Replace Simulations' dialog in ADAMS PPT
3) Writing a toolkit plot macro for general creaton of plots and pages
4) Treating plots and plot pages as a range of object sub-components.
(way to complicated buts a job done).
 
But I still have not found an optimal framework for me (and moreover to ship to my less experienced customer users) to create a template for predefined plots in ADAMS/View.
 
In:
1) It seems to get a job done, but automation of changing plot scales / page titles ... is a disaster. I have not even tried making a plot macro, but I expect it to be quite inefficient for any quick and dirty user case.
(please correct me when you think I am wrong)
 
2) The main problem I found with this option is that the dialog adjusts an existing range of plot pages, while I am looking for functionality to create a new page and allow it to be updated with new simulation results. This allows me to perform last minute updates of plots without having to redo all the work. I am actually working on copy plot page feature (including copying the plots to allow updating of plot curves). Combining this with 2) could get me the functionality I am looking for.... (but I may be re-inventing the wheel again....)
 
3) and 4) work but lots of preparation time for a quick-and-dirty set of plot templates.
 
In other words: I would appreciate feedback on my search for an optimal framework for automated plots. I may be missing some brilliant features already existing in AView/PPT for years but thats why I am posting it here.
 
Thanks in advance,
 
Kind regards,
 
Chris
 
 
Parents
  • Looks like this in the plt:
    $---------------------------------------------------------------------------PLOT
    [PLOT]
     NAME = 'xxx'
     TIME_LOWER_LIMIT = 0.0
     TIME_UPPER_LIMIT = 0.0
     COMMAND = 'vw plot_modify vaxis_limits=-100.0,100.0 vaxis_inc = 20 vaxis_minor_divs = 2'
    (PLOT_AXES)
    {axis_name   type        label        scaling divisions low_limit up_limit}
    'vaxis'     'vertical'  'Einfederung Links [mm]'  'linear'  10  0.0  0.0
    'haxis'     'horizontal'  'xxx [mm]'  'linear'  10  0.0  0.0
     
    The "COMMAND" Option executes the command: acar custom_plots vw plot_modify
     
    There's an option plot_name that will be automatically filled with the current plot; i.e. your macro needs to have
    !$plot_name:t=plot
     
    In my case I'm doing things like
     xy axis mod axis=$plot_name.haxis &
       autoscale=no &
       autodivs = no &
       lim=(eval($_self.limits[1] )),(eval($_self.limits[2])) &
       inc = $haxis_inc &
       minor_divs = $haxis_minor_divs
     
     
     
Reply
  • Looks like this in the plt:
    $---------------------------------------------------------------------------PLOT
    [PLOT]
     NAME = 'xxx'
     TIME_LOWER_LIMIT = 0.0
     TIME_UPPER_LIMIT = 0.0
     COMMAND = 'vw plot_modify vaxis_limits=-100.0,100.0 vaxis_inc = 20 vaxis_minor_divs = 2'
    (PLOT_AXES)
    {axis_name   type        label        scaling divisions low_limit up_limit}
    'vaxis'     'vertical'  'Einfederung Links [mm]'  'linear'  10  0.0  0.0
    'haxis'     'horizontal'  'xxx [mm]'  'linear'  10  0.0  0.0
     
    The "COMMAND" Option executes the command: acar custom_plots vw plot_modify
     
    There's an option plot_name that will be automatically filled with the current plot; i.e. your macro needs to have
    !$plot_name:t=plot
     
    In my case I'm doing things like
     xy axis mod axis=$plot_name.haxis &
       autoscale=no &
       autodivs = no &
       lim=(eval($_self.limits[1] )),(eval($_self.limits[2])) &
       inc = $haxis_inc &
       minor_divs = $haxis_minor_divs
     
     
     
Children
No Data