• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

haiiliin / abqpy / 6433593370

06 Oct 2023 03:30PM UTC coverage: 73.825% (-9.3%) from 83.134%
6433593370

push

github

web-flow
[feature] Add GUI Toolkit Commands (backport #5260) (#5285)

[feature] Add GUI Toolkit Commands (#5260)

* Markdown

* Delete

* Add AFXApp and AFXBoolKeyword

* Delete

* Update headings

* Create parse.py

* Update parse.py

* Unicode Spaces

* Update .pre-commit-config.yaml

* Update md types

* Update Kernel plug-in registration commands.md

* Generated python stubs

* Add class inheritance

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Revert "Update .pre-commit-config.yaml"

This reverts commit 9d3aef3cc.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Fix mypy errors

* Delete parse.py

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Fix return types and imports

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update AFXColumnItems.md

* Update abaqusGui.py

* Add class/global flags

* Delete flags.py

* Fix flags

* Fix

* Skip mypy

* Update abaqusGui.py

* Update constants.py

* Create kernelAccess.py

* Add plugin docs

* Revert changes by docformatter

* Delete markdown files

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
(cherry picked from commit a65ff5df8)

Co-authored-by: Hailin Wang <hailin.wang@connect.polyu.hk>

3661 of 3661 new or added lines in 151 files covered. (100.0%)

24137 of 32695 relevant lines covered (73.82%)

0.74 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/abaqus/PlugInRegistration/AFXObjectKeyword.py
1
from __future__ import annotations
×
2

3
from .AFXCommand import AFXCommand
×
4
from .AFXKeyword import AFXKeyword
×
5

6

7
class AFXObjectKeyword(AFXKeyword):
×
8
    """This class is designed for the command keywords that have objects as values."""
9

10
    def __init__(self, command: AFXCommand, name: str, isRequired: bool = False, defaultValue: str = "''"):
×
11
        """Constructor.
12

13
        Parameters
14
        ----------
15
        command : AFXCommand
16
            Host command.
17
        name : str
18
            Keyword name.
19
        isRequired : bool
20
            True if the keyword is a required argument of the command.
21
        defaultValue : str
22
            Default value.
23
        """
24

25
    def getTypeName(self):
×
26
        """Returns the name of the keyword type.
27

28
        Implements AFXKeyword.
29
        """
30

31
    def getValue(self):
×
32
        """Returns the keyword's current value."""
33

34
    def getValueAsString(self):
×
35
        """Returns the text string that represents the keyword's current value.
36

37
        Implements AFXKeyword.
38
        """
39

40
    def isValueChanged(self):
×
41
        """Returns True if the keyword value differs from its previous value.
42

43
        Implements AFXKeyword.
44
        """
45

46
    def setDefaultValue(self, defaultValue: str):
×
47
        """Sets the keyword's default value.
48

49
        Parameters
50
        ----------
51
        defaultValue : str
52
            Default value.
53
        """
54

55
    def setValue(self, newValue: str):
×
56
        """Sets the keyword's current value.
57

58
        Parameters
59
        ----------
60
        newValue : str
61
            New value.
62
        """
63

64
    def setValueToDefault(self, ignoreUnspecified: bool = False):
×
65
        """Sets the keyword value to its default.
66

67
        Parameters
68
        ----------
69
        ignoreUnspecified : bool
70
            If set to True, ignore setting the value if the default is unspecified.
71
        """
72

73
    def setValueToPrevious(self):
×
74
        """Sets the keyword value to its previous value.
75

76
        Implements AFXKeyword.
77
        """
78

79
    def syncPreviousValue(self):
×
80
        """Sets the keyword's previous value to its current value.
81

82
        Implements AFXKeyword. By clicking on Send, you accept that Dassault Systèmes will process your
83
        personal data and may contact you for further information. [Privacy Policy](
84
        https://www.3ds.com/privacy-policy).
85
        Total Results: Results per page This page cannot be found. The page might not exist or is
86
        temporarily unavailable. Try again or try searching for the topic. Use this form to provide feedback
87
        on this help topic. To get product support or to provide product feedback, go to [Frequently Asked
88
        Questions](
89
        https://3ds.one/PO).
90
        For support for online purchased solutions, go to [Online Purchase Support](https://3ds.one/Q8). *
91
        Required Subject: Feedback on User Assistance * I acknowledge I have read and I hereby accept the
92
        [privacy policy](
93
        https://www.3ds.com/privacy-policy)
94
        under which my personal data will be used by Dassault Systèmes.
95
        """
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc