.. _set_sys_display_attrs: ============================= System and Display Attributes ============================= Methods for storing information associated with a feature .. currentmodule:: onscale.tree Set Display Attribute ^^^^^^^^^^^^^^^^^^^^^ Description: Set a display attribute to store display-related information which will be associated with a feature and can be used by the UI (but will not affect the physics of the model). Note that display attributes are primarily intended for internal use by OnScale UI and generally should not be edited. Examples: >>> import onscale as on >>> with on.Simulation("Static Solve") as sim: ... geom = on.ParametricCad(["I_Beam_1.step", "I_Beam_2.step"]) ... materials = on.CloudMaterials('onscale') ... alumina = materials['Alumina'] ... alumina.set_display_attr("color", "red") Args: key: The display attribute name. value: The display attribute value. Set System Attribute ^^^^^^^^^^^^^^^^^^^^ Description: Set a system attribute to store system-related information which will be associated with a feature and can be used by the UI and OnScale infrastructure (but will not affect the physics of the model). Note that system attributes are intended for internal use by OnScale and should not be edited. Examples: >>> import onscale as on >>> with on.Simulation("Static Solve") as sim: ... geom = on.ParametricCad(["I_Beam_1.step", "I_Beam_2.step"]) ... geom.set_system_attr('onshape_assembly_microversion', '4456cf98038cde8d505effb5') Args: key: The system attribute name. value: The system attribute value.