View Handling
- Last UpdatedNov 27, 2023
- 2 minute read
|
view_shellexp_new(ViewOptions) |
||
|
Create a shell expansion view. |
||
|
Input Parameters: |
||
|
ViewOptions |
Instance of KcsShellExpView. An object with all the options to set up a shell expansion view |
|
|
Returned value: |
||
|
[0]ViewHandle |
ElementHandle |
Handle to the new shell expansion view. |
|
Exceptions: |
||
|
kcs_Error |
Failed to create the view. |
|
|
kcs_DrawingNotCurrent |
There is no current drawing. |
|
|
view_bodyplan_new(ViewOptions) |
||
|
Create a body plan view |
||
|
Input Parameters: |
||
|
ViewOptions |
Instance of KcsBodyPlanView. An object with all the options to set up a bodyplan view |
|
|
Returned value: |
||
|
[0]ViewHandle |
ElementHandle |
Handle to the new view. |
|
Exceptions: |
||
|
kcs_Error |
Failed to create the view. |
|
|
kcs_ArgumentError |
Invalid input. |
|
|
kcs_DrawingNotCurrent |
There is no current drawing. |
|
|
view_curvedpanel_new(Panel, ViewOptions) |
||
|
Create a curved panel view |
||
|
Input Parameters: |
||
|
Panel |
Model |
The curved panel to create the view for. |
|
ViewOptions |
KcsInterpretationObject. CurvedPanelView |
Instance of KcsInterpretationObject. Options for the view. |
|
Returned value: |
||
|
[0]ViewHandle |
ElementHandle |
Handle to the new view. |
|
Exceptions: |
||
|
kcs_Error |
Failed to create the view. |
|
|
kcs_ArgumentError |
Invalid input. |
|
|
kcs_DrawingNotCurrent |
There is no current drawing. |
|
|
kcs_NameOccupied |
A view of this panel exists in current drawing (same view name). |
|
|
kcs_NameOccupied |
No view with expected name created. |
|
|
kcs_SubpictureNotValid |
View created on wrong level. |
|
|
view_shprof_new(Stiffener) |
||
|
Create a shell profile view |
||
|
Input Parameters: |
||
|
Stiffener |
KcsModel |
Instance of KcsModel. Name of the profile to create a view for. |
|
Returned value: |
||
|
[0]ViewHandle |
ElementHandle |
Handle to the new view. |
|
Exceptions: |
||
|
kcs_Error |
Failed to create the view. |
|
|
kcs_ArgumentError |
Invalid input. |
|
|
kcs_DrawingNotCurrent |
There is no current drawing. |
|
|
view_devpla_new(Plate) |
||
|
Create a shell profile view |
||
|
Input Parameters: |
||
|
Plate |
KcsModel |
Instance of KcsModel. Name of the shell plate to create a view for. |
|
Returned value: |
||
|
[0]ViewHandle |
ElementHandle |
Handle to the new view. |
|
Exceptions: |
||
|
kcs_Error |
Failed to create the view. |
|
|
kcs_ArgumentError |
Invalid input. |
|
|
kcs_DrawingNotCurrent |
There is no current drawing. |
|
|
view_modify(ViewHandle) |
||
|
Get the view options data for a given view |
||
|
Input Parameters: |
||
|
ViewHandle |
ElementHandle |
Handle to the view. |
|
Returned value: |
||
|
ViewOptions |
Instance of any of the hull "view option" classes: KcsCurvedPanelView, KcsShellExpView, KcsBodyPlaneView or KcsInterpretationObject. The view option object will be filled with all the view options that was set when the view was created. |
|
|
Exceptions: |
||
|
kcs_ArgumentError |
Invalid input. |
|
|
kcs_DrawingNotCurrent |
There is no current drawing. |
|
|
kcs_HandleInvalid |
The view handle is invalid or view data is missing. |
|
|
view_recreate(ViewHandle) |
||
|
Recreate a given view. |
||
|
Input Parameters: |
||
|
ViewHandle |
ElementHandle |
Handle to view. |
|
Returned value: |
||
|
none |
||
|
Exceptions: |
||
|
kcs_ArgumentError |
Invalid input. |
|
|
kcs_DrawingNotCurrent |
There is no current drawing. |
|
|
Examples: |
||
|
# Example: kcs_ex_hullcurved_views01.py |
||