:class:`Cards` ============== .. py:class:: ansys.dyna.core.lib.cards.Cards(keyword) Bases: :py:obj:`ansys.dyna.core.lib.option_card.OptionsInterface` Abstract base class for option card api interface. .. !! processed by numpydoc !! .. py:currentmodule:: Cards Overview -------- .. tab-set:: .. tab-item:: Methods .. list-table:: :header-rows: 0 :widths: auto * - :py:attr:`~is_option_active` - * - :py:attr:`~activate_option` - * - :py:attr:`~deactivate_option` - * - :py:attr:`~get_option_spec` - * - :py:attr:`~write` - Writes the cards to `buf` using `format`. .. tab-item:: Properties .. list-table:: :header-rows: 0 :widths: auto * - :py:attr:`~options` - Gets the options_api of this keyword, if any * - :py:attr:`~option_specs` - Get the card format type. Import detail ------------- .. code-block:: python from ansys.dyna.core.lib.cards import Cards Property detail --------------- .. py:property:: options :type: ansys.dyna.core.lib.option_card.Options Gets the options_api of this keyword, if any .. !! processed by numpydoc !! .. py:property:: option_specs :type: Iterable[ansys.dyna.core.lib.option_card.OptionSpec] Get the card format type. .. !! processed by numpydoc !! Method detail ------------- .. py:method:: is_option_active(option: str) -> bool .. py:method:: activate_option(option: str) -> None .. py:method:: deactivate_option(option: str) -> None .. py:method:: get_option_spec(name: str) -> ansys.dyna.core.lib.option_card.OptionSpec .. py:method:: write(buf: TextIO, format: ansys.dyna.core.lib.format_type.format_type, comment: Optional[bool] = True) -> bool Writes the cards to `buf` using `format`. Returns whether a superfluous newline is added .. !! processed by numpydoc !!