hexagon logo

CMD Script to loop through all the connectors in the assembly and ensure the request activity is set to "inherit".

Hello,

I am looking to check if its possible to write a adams cmd script to loop through all the connectors in the assembly and make sure their request activity is always set to "inherit"

Appreciate any feedback and help in wiritng the script. Thank you.

Parents
  • Hi Sai,

    Try running the following snippet and it should work-

    !

    for var=the_con object_name=(eval(DB_CHILDREN(DB_DEFAULT( .system_defaults , "model" ),"ac_connector")))

    acar standard_interface connector &
    connector = (the_con) &
    method = (eval(the_con.method.string_value)) &
    joint_type = (eval(the_con.joint_type.string_value)) &
    request_activity = inherit &
    symmetric = yes
    end

    !

    Regards,
    Rishi

Reply
  • Hi Sai,

    Try running the following snippet and it should work-

    !

    for var=the_con object_name=(eval(DB_CHILDREN(DB_DEFAULT( .system_defaults , "model" ),"ac_connector")))

    acar standard_interface connector &
    connector = (the_con) &
    method = (eval(the_con.method.string_value)) &
    joint_type = (eval(the_con.joint_type.string_value)) &
    request_activity = inherit &
    symmetric = yes
    end

    !

    Regards,
    Rishi

Children