Store/Skip/Delete/Recreate
- Last UpdatedNov 27, 2023
- 2 minute read
|
store(Model) |
|
|
Store a curved hull object. This store method works as the store in interactive curved hull. It is an "intelligent" store, that means, it will update all related objects.If you choose to store a shell profile for instance, this function will also store shell stiffeners and trace curves and update limit tables. |
|
|
Input Parameters: |
|
|
Model |
A KcsModel object. |
|
Returned value: |
|
|
None |
|
|
Exceptions: |
|
|
kcs_ArgumentError |
Invalid input |
|
kcs_Error |
Storing failed: Model objects does not exist, is locked by another user or other error. |
|
skip(Model) |
|
|
Skips a curved hull object, that means, removes any locks set on the object and related objects. (If you choose to skip a shell profile for instance, the function will also unlock shell stiffeners and trace curves that belong to the profile.) |
|
|
Input Parameters: |
|
|
Model |
A KcsModel object. |
|
Returned value: |
|
|
None |
|
|
Exceptions: |
|
|
kcs_ArgumentError |
Invalid input |
|
kcs_Error |
Skip failed: Model objects does not exist, is locked by another user or other error. |
|
delete(Model) |
|
|
Delete a curved hull object. This store method works as the delete function in interactive curved hull. It is an "intelligent" delete, that means, it will also delete/update related objects.If you choose to delete a shell profile for instance, this function will also delete all shell stiffeners and trace curves and remove the profile from the limit tables. |
|
|
Input Parameters: |
|
|
Model |
A KcsModel object. |
|
Returned value: |
|
|
None |
|
|
Exceptions: |
|
|
kcs_ArgumentError |
Invalid input |
|
kcs_Error |
Delete failed: Model objects does not exist, is locked by another user or other error. |
|
recreate(Model) |
|
|
Recreate a curved hull object. |
|
|
Input Parameters: |
|
|
Model |
A KcsModel object. |
|
Returned value: |
|
|
None |
|
|
Exceptions: |
|
|
kcs_ArgumentError |
Invalid input |
|
kcs_Error |
Recreate failed: Model object does not exist or other error. |
|
Examples: |
|
|
# Example: kcs_ex_hull_shellcurves.py |
|
|
# Example: kcs_ex_hull_shellstiff.py |
|