Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.
General

General

How to get values of parameter P1 for all DPs into a list using workbench scripting?

    • FAQFAQ
      Participant

      allsys = GetAllSystems() system1 =allsys[0] dp= Parameters.GetAllDesignPoints() pp = Parameters.GetParameter(Name=’P1′) my_par_list=[] BodyCounts=[] for k in range(len(dp)): dpp = Parameters.GetDesignPoint(Name=k.ToString()) my_par_list.append(dpp.GetParameterValue(Parameter=pp))