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

Hull and Outfitting

Visual Area Functions

  • Last UpdatedNov 27, 2023
  • 1 minute read

dwg_repaint()

The function repaints entire drawing.

Input Parameters:

None

Returned value:

None

Exceptions:

kcs_DrawingNotCurrent

No drawing was current.

dwg_zoom()

The function zooms the display to the specified rectangle.

Input Parameters:

rectangle

KcsRectangle2D

New display area

Returned value:

None

Exceptions:

kcs_DrawingNotCurrent

No drawing was current.

kcs_ArgumentError

Invalid parameter type.

kcs_ValueError

Specified rectangle is empty.

kcs_PythonMethodNotFound

Python Rectangle2D class method not found.

zoom_extent_get()

The function returns currently displayed area of drawing. Note that if the drawing is empty this function can return empty rectangle. The IsEmpty() method of Rectagle2D class should be use for test.

Input Parameters:

rectangle

KcsRectangle2D

Instance of Rectangle2D class.

Returned value:

rectangle

KcsRectangle2D

Displayed area of drawing

Exceptions:

kcs_DrawingNotCurrent

No drawing was current.

kcs_ArgumentError

Invalid parameter type.

kcs_Error

General error.

kcs_PythonMethodNotFound

Python Rectangle2D class method not found.

Example:

# Example: kcs_ex_draft35.py

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