Ansys Python Chart Output Quantities

Member Posts: 5
Name Dropper First Comment
**

Is anyone familiar with what command would be used to set the Display option to Omit under the Output Quantities of a Chart?

Best Answers

  • Member Posts: 5
    Name Dropper First Comment
    **
    Answer ✓

    @James Derrick Sorry for the confusion.

    Some of my code is show below. I am looping through data and creating data sets that pull both max and min values. I am trying to add some code that will omit the min values under the "Output Quantities" section under the chart detail menu.

    Create the number of charts defined in Total_Number_of_Charts

    for Charts in range(0, int(Total_Number_of_Charts)):
    Add_Chart = Model.AddChart()
    Add_Chart.Name = "New_Chart"
    Find_Data_X = ExtAPI.DataModel.GetObjectsByName(name=Normal_Stress_X_Name)[Charts]
    Find_Data_Y = ExtAPI.DataModel.GetObjectsByName(name=Normal_Stress_Y_Name)[Charts]
    Find_Data_Z = ExtAPI.DataModel.GetObjectsByName(name=Normal_Stress_Z_Name)[Charts]
    Find_Data_XY = ExtAPI.DataModel.GetObjectsByName(name=Shear_Stress_XY_Name)[Charts]
    Find_Data_YZ = ExtAPI.DataModel.GetObjectsByName(name=Shear_Stress_YZ_Name)[Charts]
    Find_Data_XZ = ExtAPI.DataModel.GetObjectsByName(name=Shear_Stress_XZ_Name)[Charts]
    Add_Chart.OutlineSelection = [Find_Data_X, Find_Data_Y, Find_Data_Z, Find_Data_XY, Find_Data_YZ, Find_Data_XZ]
    Add_Chart.Content = ChartReportType.TabularDataOnly

Answers

Welcome!

It looks like you're new here. Sign in or register to get started.