Modify Components
- Last UpdatedNov 27, 2023
- 2 minute read
This group is a number of functions that modify components in a panel. The Vitesse function modifies the model components "directly", that means, NOT via the input scheme. The functionality is similar to that of the corresponding interactive function of planar hull modelling.
|
pan_remove_seam(panel_name, component) |
||
|
Remove a seam from a panel. This function corresponds to the function "Remove seam" of the interactive planar hull modelling. It removes the seam an "glues" all components that are split by the seam. |
||
|
Input Parameters: |
||
|
panel_name |
The name of the panel |
|
|
component |
The seam component number |
|
|
Returned value: |
||
|
none |
||
|
Exceptions: |
||
|
kcs_ArgumentError |
Invalid input parameters, for example, the group number does not exist. |
|
|
kcs_NoModelIsCurrent |
The panel is not activated. |
|
|
pan_group_delete(panel_name,group) |
||
|
Delete a group of components from a panel. |
||
|
Input Parameters: |
||
|
panel_name |
The name of the panel |
|
|
group |
The group number |
|
|
Returned value: |
||
|
none |
||
|
Exceptions: |
||
|
kcs_ArgumentError |
Invalid input parameters, for example, the group number does not exist. |
|
|
kcs_NoModelIsCurrent |
The panel is not activated. |
|
|
pan_group_divide(panel_name, group, ListOfModels) |
||
|
Move some components from a group into a new group. |
||
|
Input Parameters: |
||
|
Group |
integer |
The group to be divided. |
|
ListOfModels |
List of instances of KcsModel |
The components to be moved from "group" to a new group. |
|
Returned value: |
||
|
new_group |
integer |
The number of the new group. |
|
Exceptions: |
||
|
kcs_ArgumentError |
Invalid input parameters, for example, the group number does not exist. |
|
|
kcs_NoModelIsCurrent |
The panel is not activated. |
|
|
pan_sti_split_by_model(group, component_id) |
||
|
Split a group of stiffeners where they intersect another model, that means, a hole, a stiffener or a seam in the current panel. This function operates on all active panels. |
||
|
Input Parameters: |
||
|
group |
integer |
The group to be split. |
|
component_id |
integer |
Selected the "splitting" component. The function will be split the group of stiffeners where this component intersect the stiffeners. The component may be a stiffener, a seam, a hole, a flange or a bracket. |
|
Returned value: |
||
|
None |
||
|
Exceptions: |
||
|
kcs_ArgumentError |
Invalid input parameters. |
|
|
pan_sti_split_by_plane(group, plane) |
||
|
Split a group of stiffeners where they intersect a plane. This function operates on all active panels. |
||
|
Input Parameters: |
||
|
Group |
integer |
The group to be divided. |
|
Plane |
string |
The group will be divided where this plane intersects the stiffeners. Plane is a string describing a principal plane. It can be a string like "X=FR50+200", "Y=8000" or Z="LP23-100". |
|
Returned value: |
||
|
None |
||
|
Exceptions: |
||
|
kcs_ArgumentError |
Invalid input parameters. |
|
|
kcs_Error |
The split failed: no intersection or other error. |
|
|
Example: |
||
|
# Example: kcs_ex_hullpan03.py |
||
|
component_id_translate (act, component_id) |
||
|
Translate id between panel component number and picture element id. |
||
|
Input Parameters: |
||
|
Act |
integer |
0 - translate panel to picture id 1 - translate picture to panel id |
|
component_id |
integer |
Id to translate |
|
Returned value: |
||
|
Integer - Translated Id |
||
|
Exceptions: |
||
|
kcs_ArgumentError |
Invalid input parameters |
|