#### 6.10.1.2. LayupPlotDict Class

`class compolyx.plot_data.LayupPlotDict`(name, label=None, obj=None, list=[], item_type=<type 'object'>, parent=None, key_attr='name')

Container for Layup Plots

`create_angle_plot`(name=None, id=None, data_scope=[], show_on_solids=False, show_on_section_cuts=True, show_ply_offsets=False, ply_offset_scale_factor=1.0, component=None, add_to_active_set=True, locked=False)

  Create a Angle Plot object.

  Parameters

  - name : Name of the plot

  - id : ID for the plot

  - data_scope : Object(s) defining the scope for which data is computed and returned

      Applicable are: Element Set, Oriented Selection Set, Modeling Ply, Sampling Point

  - show_on_solids : True or False (default). Whether to show the results on the shell or solid model (if present).

  - show_on_section_cuts : Whether to show the results on the surface section cuts as well. Default is True.

  - show_ply_offsets : True or False (default). Whether to display ply-wise visualizations with ply offsets or not.

  - ply_offset_scale_factor : Scale factor for the offsets of the visualized plies if show_ply_offsets=True.

  Returns

  the plot object

  Example:

    Create a angle plot with Data Scope set to Element Set "All_Elements":

        >>> angle_plot = db.active_model.layup_plots.create_angle_plot(self, name="MyPlot", data_scope=db.active_model.element_sets['All_Elements'])

`create_draping_plot`(name=None, id=None, show_flatwrap=True, show_draping_mesh=False, add_to_active_set=True, locked=False)

  Create a Draping Plot object.

  Parameters

  - name : Name of the plot

  - id : ID for the plot

  Returns

  the plot object

  Example:

    Create a draping plot with Data Scope set to Element Set "All_Elements":

        >>> draping_plot = db.active_model.layup_plots.create_draping_plot(self, name="MyPlot")

`create_scalar_field_plot`(name=None, id=None, data_scope=[], scalar_field=None, show_supporting_points=False, show_supporting_point_labels=False, supporting_point_scale_factor=1.0, show_on_solids=False, show_ply_offsets=False, ply_offset_scale_factor=1.0, add_to_active_set=True, locked=False)

  Create a Field Plot object.

  Parameters

  - name : Name of the plot

  - id : ID for the plot

  - data_scope : Object(s) defining the scope for which data is computed and returned. Applicable are: Element Set, Oriented Selection Set, Modeling Ply, Sampling Point

  - ply_wise : True or False (default). Decides whether to return the field values of the individual plies or of the whole stack of plies present at an element.

  - show_on_solids : True or False (default). Whether to show the results on the shell or solid model (if present).

  - show_ply_offsets : True or False (default). Whether to display ply-wise visualizations with ply offsets or not.

  - ply_offset_scale_factor : Scale factor for the offsets of the visualized plies if show_ply_offsets=True.

  Returns

  the plot object

  Example:

    Create a field plot with Data Scope set to Element Set "All_Elements" in ply_wise mode:: tbdtbdtbd

`create_thickness_plot`(name=None, id=None, data_scope=[], ply_wise=False, show_on_solids=False, show_ply_offsets=False, ply_offset_scale_factor=1.0, add_to_active_set=True, locked=False)

  Create a Thickness Plot object.

  Parameters

  - name : Name of the plot

  - id : ID for the plot

  - data_scope : Object(s) defining the scope for which data is computed and returned. Applicable are: Element Set, Oriented Selection Set, Modeling Ply, Sampling Point

  - ply_wise : True or False (default). Decides whether to return the thickness of the individual plies or of the whole stack of plies present at an element.

  - show_on_solids : True or False (default). Whether to show the results on the shell or solid model (if present).

  - show_ply_offsets : True or False (default). Whether to display ply-wise visualizations with ply offsets or not.

  - ply_offset_scale_factor : Scale factor for the offsets of the visualized plies if show_ply_offsets=True.

  Returns

  the plot object

  Example:

    Create a thickness plot with Data Scope set to Element Set "All_Elements" in ply_wise mode:

        >>> thick_plot = db.active_model.layup_plots.create_thickness_plot(self, name="MyPlot", data_scope=db.active_model.element_sets['All_Elements'], ply_wise = True)

`create_user_defined_plot`(name=None, id=None, data_scope=[], user_data=[], user_text=[], user_script=[], user_script_enabled=False, show_on_solids=False, show_user_text=False, show_ply_offsets=False, ply_offset_scale_factor=1.0, add_to_active_set=True, locked=False)

  Create a User-defined Plot object.

  Parameters

  - name : Name of the plot

  - id : ID for the plot

  - data_scope : Object(s) defining the scope for which data is computed and returned. Applicable are: Element Set, Oriented Selection Set, Modeling Ply, Sampling Point

  - show_on_solids : True or False (default). Whether to show the results on the shell or solid model (if present).

  - show_user_text : True or False (default). Whether to show the text, which the user provided.

  - show_ply_offsets : True or False (default). Whether to display ply-wise visualizations with ply offsets or not.

  - ply_offset_scale_factor : Scale factor for the offsets of the visualized plies if show_ply_offsets=True.

  Returns

  the plot object

  Example:

    Create a user-defined plot with Data Scope set to Element Set "All_Elements":

        >>> u_plot = db.active_model.layup_plots.create_user_defined_plot(self, name="MyPlot", data_scope=db.active_model.element_sets['All_Elements'])

Release 18.2 - © ANSYS, Inc. All rights reserved.