Functions for Default Values
- Last UpdatedNov 24, 2023
- 1 minute read
Refer to Marine Drafting, Model Viewing and General Drafting for general information about the Default handling in Drafting.
This chapter describes functions to access the default settings in Drafting, see also Drafting Default File Keywords.
|
default_value_set(DefStatement) |
||
|
The function updates a default value by a given default statement. |
||
|
Input Parameters: |
||
|
DefStatement |
string |
The default statement (max 80 characters). Statement string in format ‘KEYWORD=VALUE’ or ‘KEYWORD:VALUE’. |
|
Returned value: |
||
|
None |
||
|
Exceptions: |
||
|
kcs_Error |
Invalid arguments list |
|
|
kcs_ValueError |
Invalid parameter value |
|
|
kcs_DefKeywordInvalid |
Invalid default keyword |
|
|
kcs_DefValueInvalid |
Invalid default value |
|
|
default_value_get(DefKeyword) |
||
|
The function returns a default statement, given a default keyword. |
||
|
Input Parameters: |
||
|
DefKeyword |
string |
The default keyword (max 40 characters). |
|
Returned value: |
||
|
[0] |
string |
The default statement |
|
Exceptions: |
||
|
kcs_Error |
Invalid arguments list. |
|
|
kcs_DefKeywordInvalid |
Invalid default keyword |
|
|
Example: |
||
|
# Example: kcs_ex_draft18.py |
||