Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Hull and Outfitting

Deleting Functions

  • Last UpdatedNov 27, 2023
  • 1 minute read

element_delete(Handle)

The function deletes an arbitrary entity in the current drawing. The entity is given by a handle.

Input Parameters:

Handle

KcsElementHandle

Handle to the entity

Returned value:

None

Exceptions:

kcs_DrawingNotCurrent

No drawing was current

kcs_HandleInvalid

Invalid handle to given entity

Example:

# Example: kcs_ex_draft14.py

delete_by_area (handles, act, contour)

This function deletes everything inside or outside specified area.

Input Parameters:

handles

List or tuple of element handles

Handles of elements that should be considered.

act

Constant

kcs_draft.kcsDEL_INSIDE or kcs_draft.kcsDEL_OUTSIDE

contour

Contour2D

Contour defining deletion area

Returned value:

None.

Exceptions:

kcs_ArgumentError

Argument Error

kcs_ValueError

Handle invalid or not an instance of ElementHandle class.

kcs_DrawingNotCurrent

There is no current drawing.

kcs_GeneralError

General error

Related Links
TitleResults for “How to create a CRG?”Also Available in