hexagon logo

ADAMS INSIGHT SCRIPT

Renaming ADAMS Insight abbreviation
Renaming ADAMS/Insight (factor & response) is tedious.
 
As shown in the figure above, I have to rename the (abbreviation : r_06) to (mode16_imaginary).
 
Imagine that repeating this process for hundreds of (factors & responses). Its tedious.
 
Is there any script or way that I can rename each of these (factors & response) abbreviation automatically?
  • First, why would you like to have the abbreviation the same as the name? The reason abbreviations exist is that they should be easier to read in complex tables and figures. I do often rename the abbreviation, but to something much shorter thant he anme, such as 'm16im' in your case.
    But anyway, the ADAMS/Insight experiemtn file is a xml file. Easy to edit and a with a good text editor you can quickly create a macro that 
    1. Search for factor name="
    2. Copy the string after this.
    3. Search for "abbreviation">
    4. Replace the string after this with the copied string.
    Using an xml editor could make it even simpler.
    Save your file, open insight and open up the experiment.
  • Tagging this thread for #Insight ...
     
    I was annoyed by this recently, too, so I logged a Product Enhancement request on this with a suggestion similar to yours. I've also created a script that will live here:
    but the darned attachment isn't showing up at the moment. (grrrrr). We should have that fixed shortly, but here's how it works (download attached script..):
     
    c:\MSC.Software\Adams\2017\common\mdi.bat python insight_make_abbrevs.py exp.xml out_file.xml
     
    where:
    insight_make_abbrevs.py    = attached file, saved to your working directory
    exp.xml                                   = name of your Insight experiment, in working directory
    out_file.xml                            = name of new experiment, created in working directory
     

    Attached Files (1)