hexagon logo

CMD problem from A/Car 2017 to A/Car 2018

I have a cmd file I've used for many years to extract info about my A/Car suspension assemblies. It seems to be crashing now on the last line below in A/Car 2018 and I can't see why. Any thoughts...???
 
defaults function_references show_as = partial_name
!
!------------------------------------------------------------------------------------------------------------
!>>>>>> Capture model, analysis, and subsystem names...
!
var set var=Model_Name object=(eval(db_default(.system_defaults,"model")))
var set var=Analysis_Name object=(eval(db_default(.system_defaults,"analysis")))
var set var=Subsystem_Name string_value=(str_substr(eval(Model_Name.object_value[1]),1,(str_length(eval(Model_Name.object_value[1]))-1)))
var set var=Analysis_Subsystem_Name object=(eval(Analysis_Name.object_value)//eval(Subsystem_Name.string_value))
Parents
  • As usual, your $0.02 (and Greg's!) are very helpful.
     
    I'll give that "subsystem_lookup" a try.
     
    I have occasionally been getting complaints from ADAMS about a variable existing in more than one place, so I like your suggestion about that, too.
     
    And you're right, I'm absolutely bogged down in my old ways using cmd files. This isn't the first (or last! Blush ) time you've reminded me of the superiority of macros. Old dog...
Reply
  • As usual, your $0.02 (and Greg's!) are very helpful.
     
    I'll give that "subsystem_lookup" a try.
     
    I have occasionally been getting complaints from ADAMS about a variable existing in more than one place, so I like your suggestion about that, too.
     
    And you're right, I'm absolutely bogged down in my old ways using cmd files. This isn't the first (or last! Blush ) time you've reminded me of the superiority of macros. Old dog...
Children
No Data